Return invalid keyword string instead of null when passing a bad ID to VM_GetKeywordForID()

git-svn-id: https://svn.eduke32.com/eduke32@7093 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-25 23:30:12 +00:00
parent 76e86ddcea
commit 9987b1ffa0

View file

@ -613,7 +613,7 @@ char const * VM_GetKeywordForID(int32_t id)
if (keyword.val == id)
return keyword.token;
return nullptr;
return "<invalid keyword>";
}
#endif