(svn r24853) -Fix: Extend widget data member to 32 bits so that sprite IDs >= 2^16 can be used.

This commit is contained in:
peter1138
2012-12-25 22:10:43 +00:00
parent 629efeedb4
commit 1ef4f7712d
3 changed files with 6 additions and 6 deletions

View File

@@ -1212,7 +1212,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
has_missing |= c->status == GCS_NOT_FOUND;
has_compatible |= HasBit(c->flags, GCF_COMPATIBLE);
}
uint16 widget_data;
uint32 widget_data;
StringID tool_tip;
if (has_missing || has_compatible) {
widget_data = STR_NEWGRF_SETTINGS_FIND_MISSING_CONTENT_BUTTON;