From 04ea015302772915089034af75aece8a85a771e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 7 Feb 2018 13:11:37 +0100 Subject: [PATCH] Fix #7135: Pass save path as std::string, not a pointer (#7141) --- src/openrct2/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 1f022d1262..602af180c3 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -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; }