--- deliantra/server/common/living.C 2006/09/07 09:37:12 1.6 +++ deliantra/server/common/living.C 2006/09/09 22:09:19 1.8 @@ -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.8 2006/09/09 22:09:19 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,7 @@ * 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 = *op; if(op->type==PLAYER) { if (tmp->type==POTION) {