Commit 03299b9a authored by Michael Steenbeek's avatar Michael Steenbeek
Browse files

Assert string number is not -2

parent 67ebf40f
Showing with 4 additions and 2 deletions
+4 -2
......@@ -456,8 +456,10 @@ static void widget_text(rct_drawpixelinfo *dpi, rct_window *w, rct_widgetindex w
sint32 t = w->y + widget->top;
sint32 r = w->x + widget->right;
// TODO: -2 seems odd
if (widget->text == (rct_string_id)-2 || widget->text == STR_NONE)
// TODO: Remove after 15 January 2018 if no issues are reported
assert(widget->text != (rct_string_id)-2);
if (widget->text == STR_NONE)
return;
if (widget_is_disabled(w, widgetIndex))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment