foxygit / doom Log in
commit 0e86f377a3cd528ed8cbbf403516f79ee5dffbac
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:17:54 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:45:11 2018 +0300

    hexen: Make SC_ScriptError parameter const
---
 src/hexen/h2def.h  | 2 +-
 src/hexen/sc_man.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h
index 0b524647..0fc46b34 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -918,7 +918,7 @@ void SC_UnGet(void);
 boolean SC_Compare(char *text);
 int SC_MatchString(char **strings);
 int SC_MustMatchString(char **strings);
-void SC_ScriptError(char *message);
+void SC_ScriptError(const char *message);

 extern char *sc_String;
 extern int sc_Number;
diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c
index ee953814..76d9312b 100644
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -446,7 +446,7 @@ boolean SC_Compare(char *text)
 //
 //==========================================================================

-void SC_ScriptError(char *message)
+void SC_ScriptError(const char *message)
 {
     if (message == NULL)
     {