Bugfix
This commit is contained in:
parent
be8ae4dca6
commit
c199ba7c63
@ -246,7 +246,12 @@ LightNode* findNearestLight()
|
|||||||
|
|
||||||
bool handleContextMenuAction(s32 cmd_id)
|
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();
|
World *world = World::getWorld();
|
||||||
Physics *physics = Physics::getInstance();
|
Physics *physics = Physics::getInstance();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user