Codechange: NewGRF strings are not StringIDs.
Add GRFStringID type and use it when dealing with GRF-local string IDs.
This commit is contained in:
committed by
Peter Nelson
parent
a59cd8b2c0
commit
2d372fa516
+1
-1
@@ -1412,7 +1412,7 @@ StringID GetCargoSubtypeText(const Vehicle *v)
|
||||
if (cb >= 0x400 || (v->GetGRF()->grf_version < 8 && cb == 0xFF)) cb = CALLBACK_FAILED;
|
||||
}
|
||||
if (cb != CALLBACK_FAILED) {
|
||||
return GetGRFStringID(v->GetGRFID(), 0xD000 + cb);
|
||||
return GetGRFStringID(v->GetGRFID(), GRFSTR_MISC_GRF_TEXT + cb);
|
||||
}
|
||||
}
|
||||
return STR_EMPTY;
|
||||
|
||||
Reference in New Issue
Block a user