1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #7135: Pass save path as std::string, not a pointer (#7141)

This commit is contained in:
Michał Janiszewski
2018-02-07 13:11:37 +01:00
committed by Ted John
parent ac8353eef9
commit 04ea015302

View File

@@ -1411,7 +1411,7 @@ void * create_save_game_as_intent()
Intent * intent = new Intent(WC_LOADSAVE);
intent->putExtra(INTENT_EXTRA_LOADSAVE_TYPE, LOADSAVETYPE_SAVE | LOADSAVETYPE_GAME);
intent->putExtra(INTENT_EXTRA_PATH, name);
intent->putExtra(INTENT_EXTRA_PATH, std::string(name, name + Util::CountOf(name)));
return intent;
}