(svn r15327) -Fix (r15027): AIs could access the map and other data in their constructor and Load() function while the savegame was not completely loaded.

This commit is contained in:
Yexo
2009-02-03 20:49:08 +00:00
parent 9c4c0ff3a1
commit 1892c34ac6
2 changed files with 79 additions and 40 deletions

View File

@@ -85,13 +85,18 @@ public:
static void SaveEmpty();
/**
* Load data from a savegame and call the AI Load function if it
* exists.
* Load data from a savegame and store it on the stack.
* @param version The version of the AI when saving, or -1 if this was
* not the original AI saving the game.
*/
void Load(int version);
/**
* Call the AI Load function if it exists and data was loaded
* from a savegame.
*/
void CallLoad();
/**
* Load and discard data from a savegame.
*/