Game Development Community

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.

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
02/19/2005 (4:46 pm)
Yup. Added to my todo list.
#2
03/15/2005 (12:20 am)
Fixed you aggregious dude.