Skip to content

Commit

Permalink
Fix constant string parameter.
Browse files Browse the repository at this point in the history
The methode LoadScript of idItemTeam is now const compliant.

Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information
XoD committed Dec 19, 2011
1 parent 11eddc9 commit 1ec811c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neo/d3xp/Item.cpp
Expand Up @@ -772,7 +772,7 @@ void idItemTeam::Spawn( void ) {
idItemTeam::LoadScript
===============
*/
function_t * idItemTeam::LoadScript( char * script ) {
function_t * idItemTeam::LoadScript( const char * script ) {
function_t * function = NULL;
idStr funcname = spawnArgs.GetString( script, "" );
if ( funcname.Length() ) {
Expand Down
2 changes: 1 addition & 1 deletion neo/d3xp/Item.h
Expand Up @@ -257,7 +257,7 @@ class idItemTeam : public idMoveableItem {
void Event_FlagCapture( void );

void PrivateReturn( void );
function_t * LoadScript( char * script );
function_t * LoadScript( const char * script );

void SpawnNugget( idVec3 pos );
void UpdateGuis( void );
Expand Down

0 comments on commit 1ec811c

Please sign in to comment.