From 07cdc79bd7b0388d6cec8cab034936f35d8445e8 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 15 Oct 2017 21:41:10 +0200 Subject: [PATCH] Replace two missed -1 NULL pointers --- src/openrct2/scenario/scenario.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/scenario/scenario.c b/src/openrct2/scenario/scenario.c index a7429e9dca..58b6f5f745 100644 --- a/src/openrct2/scenario/scenario.c +++ b/src/openrct2/scenario/scenario.c @@ -135,7 +135,7 @@ void scenario_begin() } else { rct_stex_entry* stex = g_stexEntries[0]; - if ((intptr_t)stex != -1) { + if (stex != NULL) { char *buffer = gCommonStringFormatBuffer; // Set localised park name @@ -651,7 +651,7 @@ bool scenario_prepare_for_save() gS6Info.entry.flags = 255; rct_stex_entry* stex = g_stexEntries[0]; - if ((intptr_t)stex != -1) { + if (stex != NULL) { char buffer[256]; format_string(buffer, 256, stex->scenario_name, NULL); safe_strcpy(gS6Info.name, buffer, sizeof(gS6Info.name));