Log string ID in GetGRFStringPtr assertion

This commit is contained in:
Jonathan G Rennison
2019-05-20 21:33:22 +01:00
parent a7de6ec35b
commit e64706d147

View File

@@ -754,7 +754,7 @@ static unsigned int _grf_string_ptr_log_next = 0;
*/
const char *GetGRFStringPtr(uint16 stringid)
{
assert(_grf_text[stringid].grfid != 0);
assert_msg(_grf_text[stringid].grfid != 0, "stringid: %u", stringid);
const char *str = GetGRFStringFromGRFText(_grf_text[stringid].textholder);
if (str == nullptr) {