foxygit / doom Log in
commit 221e62bfc2a83e610b16bd1c7d86e68eced02ba4
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sat Nov 3 13:19:16 2018 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Sat Nov 3 13:19:16 2018 -0400

    strife: Allow SEH replacement for "empty slot".

    This string was not wrapped in a DEH_String() call so could not be
    replaced in a SeHackEd file. Thanks to chungy for feedback (part
    of #1040)
---
 src/strife/m_menu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c
index d2d6a731..c3724986 100644
--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -555,7 +555,7 @@ void M_ReadSaveStrings(void)
         handle = fopen(fname, "rb");
         if(handle == NULL)
         {
-            M_StringCopy(savegamestrings[i], EMPTYSTRING,
+            M_StringCopy(savegamestrings[i], DEH_String(EMPTYSTRING),
                          sizeof(savegamestrings[i]));
             LoadMenu[i].status = 0;
             continue;
@@ -769,7 +769,7 @@ void M_SaveSelect(int choice)
     //saveSlot = choice;

     M_StringCopy(saveOldString, savegamestrings[choice], sizeof(saveOldString));
-    if (!strcmp(savegamestrings[choice],EMPTYSTRING))
+    if (!strcmp(savegamestrings[choice], DEH_String(EMPTYSTRING)))
         savegamestrings[choice][0] = 0;
     saveCharIndex = strlen(savegamestrings[choice]);
 }