Player::checkMissionArea crashes
by Tom Spilman · in Torque Game Engine · 02/17/2005 (11:43 am) · 2 replies
Player::checkMissionArea() will crash if no MissionArea exists in the map.
There are cases when a mission area isn't necessary for a level and the crash just baffles the person working on the mission. Maps made up of only interiors or without terrain or the possibility of leaving the play field really don't require a mission area.
A simple... if ( !obj ) return; ... is all that is needed in there.
There are cases when a mission area isn't necessary for a level and the crash just baffles the person working on the mission. Maps made up of only interiors or without terrain or the possibility of leaving the play field really don't require a mission area.
A simple... if ( !obj ) return; ... is all that is needed in there.
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
Associate Kyle Carter