Fix array overstep in collide_weapon_and_wall

This is the same mistake as fixed in ca4f9e8b30, but in a different
function.
This commit is contained in:
Kp 2013-12-18 00:22:23 +00:00
parent 8208ab9e53
commit 022a5f8870

View file

@ -753,8 +753,8 @@ static void collide_weapon_and_wall( object * weapon, fix hitspeed, short hitseg
int robot_escort;
#if defined(DXX_BUILD_DESCENT_II)
if ((weapon->ctype.laser_info.parent_type == OBJ_ROBOT) && (Robot_info[get_robot_id(&Objects[weapon->ctype.laser_info.parent_num])].companion==1)) {
robot_escort = 1;
robot_escort = effect_parent_is_guidebot(weapon);
if (robot_escort) {
if (Game_mode & GM_MULTI)
{