mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 19:56:13 +01:00
Fix Intent pointers/strings
This commit is contained in:
committed by
Michał Janiszewski
parent
221e42b56e
commit
e5ce3859a3
@@ -14,6 +14,8 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/title/TitleScreen.h>
|
||||
#include <openrct2/core/Memory.hpp>
|
||||
@@ -836,7 +838,7 @@ static void window_loadsave_select(rct_window *w, const char *path)
|
||||
{
|
||||
save_path(&gConfigGeneral.last_save_track_directory, pathBuffer);
|
||||
auto intent = Intent(WC_INSTALL_TRACK);
|
||||
intent.putExtra(INTENT_EXTRA_PATH, pathBuffer);
|
||||
intent.putExtra(INTENT_EXTRA_PATH, std::string { pathBuffer });
|
||||
context_open_intent(&intent);
|
||||
window_close_by_class(WC_LOADSAVE);
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_OK, pathBuffer);
|
||||
|
||||
Reference in New Issue
Block a user