This commit is contained in:
auria.mg 2018-04-18 20:05:32 -04:00
parent be8ae4dca6
commit c199ba7c63

View File

@ -246,7 +246,12 @@ LightNode* findNearestLight()
bool handleContextMenuAction(s32 cmd_id)
{
unsigned int kart_num = Camera::getActiveCamera()->getKart()->getWorldKartId();
Camera* camera = Camera::getActiveCamera();
unsigned int kart_num = 0;
if (camera != NULL && camera->getKart() != NULL)
{
kart_num = camera->getKart()->getWorldKartId();
}
World *world = World::getWorld();
Physics *physics = Physics::getInstance();