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
1 changed files with 1 additions and 1 deletions

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;
}