Fix 55a1171: Restore skipping of "colour" character (#10244)

This commit is contained in:
Loïc Guilloux 2022-12-16 01:56:25 +01:00 committed by GitHub
parent c448eb04d8
commit 4f9893cc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3318,7 +3318,7 @@ SaveOrLoadResult SaveOrLoad(const std::string &filename, SaveLoadOperation fop,
ClearSaveLoadState();
/* Skip the "colour" character */
if (fop != SLO_CHECK) Debug(sl, 0, "{}", GetSaveLoadErrorString());
if (fop != SLO_CHECK) Debug(sl, 0, "{}", GetSaveLoadErrorString() + 3);
/* A saver/loader exception!! reinitialize all variables to prevent crash! */
return (fop == SLO_LOAD) ? SL_REINIT : SL_ERROR;