--- deliantra/server/socket/loop.C 2007/01/06 14:42:31 1.36 +++ deliantra/server/socket/loop.C 2007/01/08 18:18:36 1.37 @@ -145,17 +145,19 @@ if (pl && pl->ns && !pl->ns->destroyed ()) { + client *ns = pl->ns; + /* Update the players stats once per tick. More efficient than * sending them whenever they change, and probably just as useful */ esrv_update_stats (pl); - if (pl->last_weight != -1 && pl->last_weight != WEIGHT (pl->ob)) + if (ns->last_weight != -1 && ns->last_weight != WEIGHT (pl->ob)) { esrv_update_item (UPD_WEIGHT, pl->ob, pl->ob); - if (pl->last_weight != WEIGHT (pl->ob)) + if (ns->last_weight != WEIGHT (pl->ob)) LOG (llevError, "esrv_update_item(UPD_WEIGHT) did not set player weight: is %lu, should be %lu\n", - (unsigned long) pl->last_weight, WEIGHT (pl->ob)); + (unsigned long) ns->last_weight, WEIGHT (pl->ob)); } draw_client_map (pl->ob);