--- deliantra/server/common/living.C 2006/09/07 09:37:12 1.6 +++ deliantra/server/common/living.C 2006/09/09 21:48:28 1.7 @@ -1,6 +1,6 @@ /* * static char *rcsid_living_c = - * "$Id: living.C,v 1.6 2006/09/07 09:37:12 pippijn Exp $"; + * "$Id: living.C,v 1.7 2006/09/09 21:48:28 root Exp $"; */ /* @@ -370,7 +370,6 @@ */ int change_abil(object *op, object *tmp) { int flag=QUERY_FLAG(tmp,FLAG_APPLIED)?1:-1,i,j,success=0; - object refop; char message[MAX_BUF]; int potion_max=0; @@ -378,7 +377,8 @@ * refop is a local copy of op only to be used for detecting changes * found by fix_player. refop is not a real object */ - memcpy(&refop, op, sizeof(object)); + object_pod refop; + memcpy (&refop, static_cast(op), sizeof (object_pod)); if(op->type==PLAYER) { if (tmp->type==POTION) {