diff --git a/neo/d3xp/script/Script_Interpreter.cpp b/neo/d3xp/script/Script_Interpreter.cpp index 0442500..de63e7b 100644 --- a/neo/d3xp/script/Script_Interpreter.cpp +++ b/neo/d3xp/script/Script_Interpreter.cpp @@ -450,7 +450,7 @@ idInterpreter::Warning Prints file and line number information with warning. ============ */ -void idInterpreter::Warning( char *fmt, ... ) const { +void idInterpreter::Warning( const char *fmt, ... ) const { va_list argptr; char text[ 1024 ]; diff --git a/neo/d3xp/script/Script_Interpreter.h b/neo/d3xp/script/Script_Interpreter.h index 8d6c529..a1e650a 100644 --- a/neo/d3xp/script/Script_Interpreter.h +++ b/neo/d3xp/script/Script_Interpreter.h @@ -94,7 +94,7 @@ public: const char *CurrentFile( void ) const; void Error( const char *fmt, ... ) const id_attribute((format(printf,2,3))); - void Warning( char *fmt, ... ) const id_attribute((format(printf,2,3))); + void Warning( const char *fmt, ... ) const id_attribute((format(printf,2,3))); void DisplayInfo( void ) const; bool BeginMultiFrameEvent( idEntity *ent, const idEventDef *event );