]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/script.cpp
fixed some compile bugs with newer g++ versions
[irc/gameservirc.git] / gameserv / script.cpp
index f2b6c2c7504424283a4e86f40c04e63aa0155691..7055183ebc34ea7120e38ea90cac1a3a361755cb 100644 (file)
@@ -63,11 +63,11 @@ bool script::executeScript(Player *p)
 
                  if (stricmp(left, "GOLD") == 0)
                        {
-                         (int*)leftptr = p->gold;
+                         leftptr = (void*)p->gold;
                        }
                  else if (stricmp(left, "STRENGTH") == 0)
                        {
-                         (int*)leftptr = p->strength;
+                         leftptr = (void*)p->strength;
                        }
                }