(svn r17150) -Codechange: when MapGRFStringID() fails to remap, return STR_EMPTY instead of 'random' string

This commit is contained in:
smatz 2009-08-10 22:36:15 +00:00
parent 52f9b8ffbd
commit 616370eae3

View File

@ -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)