Little cleanup for the fix crash when returning to main menu.

Fix when starting the next chapter of a campaign.
This commit is contained in:
feber 2004-10-24 20:46:13 +00:00
parent 9fd57de38e
commit a89d8e8b34

View file

@ -750,9 +750,11 @@ void MenuLoop(const char* filename, WorldMap* map)
PreMenuSetup();
filename = NextChapter();
sprintf(CurrentMapPath, "%s/%s", StratagusLibPath, filename);
// filename = CurrentMapPath;
DebugPrint("Next chapter %s\n" _C_ CurrentMapPath);
if (filename) {
sprintf(CurrentMapPath, "%s/%s", StratagusLibPath, filename);
filename = CurrentMapPath;
DebugPrint("Next chapter %s\n" _C_ CurrentMapPath);
}
}
}