From 9987b1ffa0ff271789b1fb9ea676e632f7ac3604 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 25 Oct 2018 23:30:12 +0000 Subject: [PATCH] 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 --- source/duke3d/src/gamedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index d4e8a3424..98bf8be49 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -613,7 +613,7 @@ char const * VM_GetKeywordForID(int32_t id) if (keyword.val == id) return keyword.token; - return nullptr; + return ""; } #endif