(svn r17537) -Fix: don't crash while printing gamelog in crash handler if we crashed before while gamelog action was active

This commit is contained in:
smatz
2009-09-14 19:30:13 +00:00
parent b4b8089c08
commit b9852168c0
2 changed files with 4 additions and 3 deletions

View File

@@ -211,9 +211,7 @@ bool CrashLog::WriteSavegame(char *filename, const char *filename_last) const
if (_m == NULL) return false;
try {
GamelogStartAction(GLAT_EMERGENCY);
GamelogEmergency();
GamelogStopAction();
seprintf(filename, filename_last, "%scrash.sav", _personal_dir);