mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r18884) -Fix: [NewGRF] Perform bounds checking for all NewGRF data reads. Explicit length checks (which were not always correct) are no longer needed so these are removed to simplify code.
This commit is contained in:
parent
7ec3d9a0c6
commit
927f149ff2
@ -2370,6 +2370,7 @@ STR_NEWGRF_ERROR_UNKNOWN_PROPERTY :Unknown Action
|
||||
STR_NEWGRF_ERROR_INVALID_ID :Attempt to use invalid ID.
|
||||
STR_NEWGRF_ERROR_CORRUPT_SPRITE :{YELLOW}{RAW_STRING} contains a corrupt sprite. All corrupt sprites will be shown as a red question mark (?).
|
||||
STR_NEWGRF_ERROR_MULTIPLE_ACTION_8 :Contains multiple Action 8 entries.
|
||||
STR_NEWGRF_ERROR_READ_BOUNDS :Read past end of pseudo-sprite.
|
||||
|
||||
# NewGRF related 'general' warnings
|
||||
STR_NEWGRF_POPUP_CAUTION_CAPTION :{WHITE}Caution!
|
||||
|
630
src/newgrf.cpp
630
src/newgrf.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user