aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index e6ee988..3d635ab 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -59,7 +59,7 @@ extern Menu* currentMenu;
extern Menu pauseMenu;
-Mix_Chunk *dialogClick;
+static Mix_Chunk *dialogClick;
extern void mainLoop(void);
@@ -1179,6 +1179,7 @@ DONE:
if(SDL_KEY == SDLK_ESCAPE){
//gameRunning = false;
currentMenu = &pauseMenu;
+ player->save();
return;
}
switch(SDL_KEY){