Make player file saving work again

Armin Burgmeier 2011-03-12 13:55:05 +01:00
parent 6e025ee4ec
commit 68c214dd98
1 changed files with 2 additions and 0 deletions

View File

@ -980,6 +980,8 @@ bool C4Player::Load(const char *szFilename, bool fSavegame, bool fLoadPortraits)
C4Group hGroup;
// Open group
if (!Reloc.Open(hGroup, szFilename)) return false;
// Remember filename
SCopy(hGroup.GetFullName().getData(), Filename, _MAX_PATH);
// Load core
if (!C4PlayerInfoCore::Load(hGroup))
{ hGroup.Close(); return false; }