fixed save/load-game.
authorTobias Gläßer <tobi.web@gmx.de>
Sat, 13 Mar 2004 18:55:25 +0000 (18:55 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Sat, 13 Mar 2004 18:55:25 +0000 (18:55 +0000)
SVN-Revision: 205

src/setup.c

index 2f7e48c..336ae92 100644 (file)
@@ -387,18 +387,18 @@ void process_save_load_game_menu(int save)
         {
           if(save == YES)
             {
-              savegame(slot);
+              savegame(slot - 1);
             }
           else
             {
               if(game_started == NO)
              {
-                gameloop("default",slot,ST_GL_LOAD_GAME);
+                gameloop("default",slot - 1,ST_GL_LOAD_GAME);
                show_menu = YES;
                menu_set_current(&main_menu);
                }
               else
-                loadgame(slot);
+                loadgame(slot - 1);
             }
           st_pause_ticks_stop();
         }