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:
parent
9fd57de38e
commit
a89d8e8b34
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue