Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
03299b9a
Commit
03299b9a
authored
7 years ago
by
Michael Steenbeek
Browse files
Options
Download
Email Patches
Plain Diff
Assert string number is not -2
parent
67ebf40f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/openrct2/interface/widget.c
+4
-2
src/openrct2/interface/widget.c
with
4 additions
and
2 deletions
+4
-2
src/openrct2/interface/widget.c
+
4
-
2
View file @
03299b9a
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help