foxygit / doom Log in
commit 3430e574e1df09e189df4d528a28578a7cff19b3
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Aug 7 18:12:10 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Aug 7 18:12:10 2018 +0300

    hexen: Make SC_OpenLump 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 b31a6900..5b73d471 100644
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -905,7 +905,7 @@ int M_DrawText(int x, int y, boolean direct, char *string);
 //------------------------------

 void SC_Open(char *name);
-void SC_OpenLump(char *name);
+void SC_OpenLump(const char *name);
 void SC_OpenFile(char *name);
 void SC_Close(void);
 boolean SC_GetString(void);
diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c
index dbc14d09..6d8b16e4 100644
--- a/src/hexen/sc_man.c
+++ b/src/hexen/sc_man.c
@@ -97,7 +97,7 @@ void SC_Open(char *name)
 //
 //==========================================================================

-void SC_OpenLump(char *name)
+void SC_OpenLump(const char *name)
 {
     OpenScript(name, LUMP_SCRIPT);
 }