BURIED: const'ness

This commit is contained in:
Eugene Sandulenko 2021-03-17 23:23:14 +01:00
parent 5aab3da1bf
commit 9c68ab2f43

View File

@ -114,7 +114,7 @@ SaveStateList BuriedMetaEngine::listSaves(const char *target) const {
void BuriedMetaEngine::removeSaveState(const char *target, int slot) const {
// See listSaves() for info on the pattern
Common::StringArray fileNames = Buried::BuriedEngine::listSaveFiles();
const Common::StringArray &fileNames = Buried::BuriedEngine::listSaveFiles();
g_system->getSavefileManager()->removeSavefile(fileNames[slot].c_str());
}