shithub: choc

Download patch

ref: b2fb9324a939de61e495e43086e3a152dac042bf
parent: 80727ba1caee4c6a05791d1e8877de481d5d733e
author: Turo Lamminen <[email protected]>
date: Sat May 2 11:23:22 EDT 2020

heretic: Make G_RecordDemo name parameter const

--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -680,7 +680,7 @@
 extern char *savegamedir;
 
 void G_RecordDemo(skill_t skill, int numplayers, int episode, int map,
-                  char *name);
+                  const char *name);
 // only called by startup code
 
 void G_PlayDemo(char *name);
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1857,7 +1857,7 @@
 */
 
 void G_RecordDemo(skill_t skill, int numplayers, int episode, int map,
-                  char *name)
+                  const char *name)
 {
     int i;
     int maxsize;