diff --git a/neo/d3xp/script/Script_Interpreter.cpp b/neo/d3xp/script/Script_Interpreter.cpp index 6e07931..0442500 100644 --- a/neo/d3xp/script/Script_Interpreter.cpp +++ b/neo/d3xp/script/Script_Interpreter.cpp @@ -425,7 +425,7 @@ idInterpreter::Error Aborts the currently executing function ============ */ -void idInterpreter::Error( char *fmt, ... ) const { +void idInterpreter::Error( 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 d0ab7a9..8d6c529 100644 --- a/neo/d3xp/script/Script_Interpreter.h +++ b/neo/d3xp/script/Script_Interpreter.h @@ -93,7 +93,7 @@ public: int CurrentLine( void ) const; const char *CurrentFile( void ) const; - void Error( char *fmt, ... ) const id_attribute((format(printf,2,3))); + void Error( const char *fmt, ... ) const id_attribute((format(printf,2,3))); void Warning( char *fmt, ... ) const id_attribute((format(printf,2,3))); void DisplayInfo( void ) const;