Fixed crash when using debug mode from menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7979 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
97849f2623
commit
830c224e2d
@ -194,7 +194,10 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
case KEY_F11:
|
||||
if (UserConfigParams::m_artist_debug_mode && value && control_is_pressed)
|
||||
{
|
||||
world->getPhysics()->nextDebugMode();
|
||||
if (world != NULL)
|
||||
{
|
||||
world->getPhysics()->nextDebugMode();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user