shithub: choc

Download patch

ref: 12c1d8bf5812d050146dadaf59347a0d49c441cf
parent: 1c828b08d37d33e4a7448b7c403efcc2ad50c12d
author: Turo Lamminen <turotl@gmail.com>
date: Sat Dec 8 10:42:13 EST 2018

heretic: Make LevelNames contents const

--- a/src/heretic/am_map.c
+++ b/src/heretic/am_map.c
@@ -34,7 +34,7 @@
 
 #define NUMALIAS 3              // Number of antialiased lines.
 
-char *LevelNames[] = {
+const char *LevelNames[] = {
     // EPISODE 1 - THE CITY OF THE DAMNED
     "E1M1:  THE DOCKS",
     "E1M2:  THE DUNGEONS",
--- a/src/heretic/in_lude.c
+++ b/src/heretic/in_lude.c
@@ -97,7 +97,7 @@
 
 static char *KillersText[] = { "K", "I", "L", "L", "E", "R", "S" };
 
-extern char *LevelNames[];
+extern const char *LevelNames[];
 
 typedef struct
 {