mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
76e86ddcea
commit
9987b1ffa0
1 changed files with 1 additions and 1 deletions
|
@ -613,7 +613,7 @@ char const * VM_GetKeywordForID(int32_t id)
|
||||||
if (keyword.val == id)
|
if (keyword.val == id)
|
||||||
return keyword.token;
|
return keyword.token;
|
||||||
|
|
||||||
return nullptr;
|
return "<invalid keyword>";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue