1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Stop using (void*)-1 for invalid pointers

This commit is contained in:
Tomas Dittmann
2017-10-15 15:53:16 +02:00
committed by Michael Steenbeek
parent 74f1eb39a8
commit e393ff1f22
35 changed files with 102 additions and 116 deletions

View File

@@ -827,8 +827,6 @@ static void window_editor_objective_options_main_invalidate(rct_window *w)
rct_stex_entry *stex;
stex = g_stexEntries[0];
if (stex == (rct_stex_entry*)-1)
stex = nullptr;
widgets = window_editor_objective_options_widgets[w->page];
if (w->widgets != widgets) {
@@ -897,8 +895,6 @@ static void window_editor_objective_options_main_paint(rct_window *w, rct_drawpi
window_editor_objective_options_draw_tab_images(w, dpi);
stex = g_stexEntries[0];
if (stex == (rct_stex_entry*)-1)
stex = nullptr;
// Objective label
x = w->x + 8;