Save/load ext: Fix SlXvSetCurrentState being called before AfterLoadGame().

This commit is contained in:
Jonathan G Rennison 2015-08-07 20:12:25 +01:00
parent 03b6c41c67
commit e30d7c2164

View File

@ -2467,8 +2467,6 @@ static inline void ClearSaveLoadState()
delete _sl.lf;
_sl.lf = NULL;
SlXvSetCurrentState();
}
/**
@ -2780,6 +2778,8 @@ static SaveOrLoadResult DoLoad(LoadFilter *reader, bool load_check)
GamelogStopAction();
}
SlXvSetCurrentState();
return SL_OK;
}
@ -2839,6 +2839,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
return SL_REINIT;
}
GamelogStopAction();
SlXvSetCurrentState();
return SL_OK;
}