diff options
author | smatz <smatz@openttd.org> | 2009-08-10 22:36:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-10 22:36:15 +0000 |
commit | 616370eae34993be4961e690f8c008085a5b33b9 (patch) | |
tree | 3fb6d3084c1509084f449fb43e193431ea91c8d5 | |
parent | 52f9b8ffbd5fe9222da34e968d69876982b9a810 (diff) | |
download | openttd-616370eae34993be4961e690f8c008085a5b33b9.tar.xz |
(svn r17150) -Codechange: when MapGRFStringID() fails to remap, return STR_EMPTY instead of 'random' string
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index eca778dca..8c8b6e329 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -320,7 +320,9 @@ StringID MapGRFStringID(uint32 grfid, StringID str) if (str == STR_NULL) return STR_EMPTY; - return str; + DEBUG(grf, 0, "Unknown StringID 0x%04X remapped to STR_EMPTY. Please open a Feature Request if you need it", str); + + return STR_EMPTY; } static inline uint8 MapDOSColour(uint8 colour) |