From 69cf01428e6ece3a34022638603854c04a7181b5 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Sat, 6 Apr 2002 21:20:31 +0000 Subject: [PATCH] Fixed bug when restarting scenario in campaign mode --- src/game/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/game.cpp b/src/game/game.cpp index 2522e638a..97cadd1e7 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -168,6 +168,10 @@ global void CreateGame(char* filename, WorldMap* map) // FIXME: LibraryFile here? if (filename[0] != '/' && filename[0] != '.') { s = filename = strdcat3(FreeCraftLibPath, "/", filename); + strcpy(CurrentMapPath, strchr(filename,'/')+1); + } + else { + strcpy(CurrentMapPath, filename); } // // Load the map.