Bugfix (pressing F10 when no game is running could crash).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7048 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-12-17 12:17:13 +00:00
parent aa3b801dba
commit b232fa2f56

View File

@@ -199,7 +199,7 @@ void InputManager::handleStaticAction(int key, int value)
// Fall through to put the game into pause mode.
#endif
case KEY_F10:
history->Save();
if(world) history->Save();
break;
default:
break;