Explorar o código

additional linux fix for a crash on the /invul command

Image %!s(int64=4) %!d(string=hai) anos
pai
achega
c14c35c612
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 1 - 1
EQ2/source/WorldServer/Commands/Commands.cpp

@@ -2807,7 +2807,7 @@ void Commands::Process(int32 index, EQ2_16BitString* command_parms, Client* clie
 				
 //devn00b: Fix for linux builds
 #if defined(__GNUC__)
- database.insertCharacterProperty(client, CHAR_PROPERTY_INVUL, (val == 1) ? (char*) 1 : 0);
+ database.insertCharacterProperty(client, CHAR_PROPERTY_INVUL, (val == 1) ? (char*) "1" : (char*) "0");
 #else
  database.insertCharacterProperty(client, CHAR_PROPERTY_INVUL, (val == 1) ? "1" : "0");
 #endif