shithub: choc

Download patch

ref: ed41adf84beca7e87d191ac8e98cec12de56ee16
parent: 81e83adb1477346a9af6f9b04bc67d6c60b4e804
author: Turo Lamminen <turotl@gmail.com>
date: Tue Aug 7 13:55:00 EDT 2018

hexen: Make SV_SaveGame description parameter const

--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -807,7 +807,7 @@
 
 extern char *SavePath;
 
-void SV_SaveGame(int slot, char *description);
+void SV_SaveGame(int slot, const char *description);
 void SV_SaveMap(boolean savePlayers);
 void SV_LoadGame(int slot);
 void SV_MapTeleport(int map, int position);
--- a/src/hexen/sv_save.c
+++ b/src/hexen/sv_save.c
@@ -1922,7 +1922,7 @@
 //
 //==========================================================================
 
-void SV_SaveGame(int slot, char *description)
+void SV_SaveGame(int slot, const char *description)
 {
     char fileName[100];
     char versionText[HXS_VERSION_TEXT_LENGTH];