shithub: choc

Download patch

ref: 1b98fb58714e590638c35fc7df9e1e587b4ed3d3
parent: bbdd58d9cd08b85fee7811df966354dc5c6e593d
author: Turo Lamminen <turotl@gmail.com>
date: Sat Dec 8 11:57:10 EST 2018

hexen: Make sc_ScriptsDir const

--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -926,7 +926,7 @@
 extern boolean sc_End;
 extern boolean sc_Crossed;
 extern boolean sc_FileScripts;
-extern char *sc_ScriptsDir;
+extern const char *sc_ScriptsDir;
 
 //------------------------------
 // SN_sonix.c
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -52,7 +52,7 @@
 boolean sc_End;
 boolean sc_Crossed;
 boolean sc_FileScripts = false;
-char *sc_ScriptsDir = "";
+const char *sc_ScriptsDir = "";
 
 // PRIVATE DATA DEFINITIONS ------------------------------------------------