mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 09:26:26 +00:00
KYRA: Get rid of local static non-POD object.
This fixes crashes with the plugins branch for dhewg. svn-id: r52579
This commit is contained in:
parent
b6663bb942
commit
f69bfaf355
@ -387,6 +387,7 @@ protected:
|
||||
bool canSaveGameStateCurrently() { return _isSaveAllowed; }
|
||||
|
||||
const char *getSavegameFilename(int num);
|
||||
Common::String _savegameFilename;
|
||||
static Common::String getSavegameFilename(const Common::String &target, int num);
|
||||
bool saveFileLoadable(int slot);
|
||||
|
||||
|
@ -224,9 +224,8 @@ Common::WriteStream *KyraEngine_v1::openSaveForWriting(const char *filename, con
|
||||
}
|
||||
|
||||
const char *KyraEngine_v1::getSavegameFilename(int num) {
|
||||
static Common::String filename;
|
||||
filename = getSavegameFilename(_targetName, num);
|
||||
return filename.c_str();
|
||||
_savegameFilename = getSavegameFilename(_targetName, num);
|
||||
return _savegameFilename.c_str();
|
||||
}
|
||||
|
||||
Common::String KyraEngine_v1::getSavegameFilename(const Common::String &target, int num) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user