--- deliantra/server/common/loader.C 2006/09/04 11:07:59 1.2 +++ deliantra/server/common/loader.C 2006/09/04 13:55:54 1.3 @@ -626,7 +626,10 @@ break; case KW_face: - op->face = &new_faces[FindFace (thawer.get_str (), 0)]; + if (const char *str = thawer.get_str ()) + op->face = &new_faces[FindFace (str, 0)]; + else + op->face = 0; break; case KW_x: thawer.get (op->x); break; @@ -998,7 +1001,7 @@ break; default: - printf ("kw abort %d\n", kw);//D + printf ("kw abort %s\n", keyword_str [kw]);//D abort (); } } @@ -1135,7 +1138,6 @@ else return retbuf+1; } - // compare *op against *tmp and output differences void put (object_freezer &f, object *op, object *tmp) @@ -1175,16 +1177,19 @@ CMP_OUT (other_arch); CMP_OUT (face); + if (!op->face || !op->face->name) + printf ("ERRFACE<%s,%s, face %p,%p, fname%s>\n", &tmp->name, &op->name, tmp->face, op->face, op->face ? &op->face->name : "");//D + if (op->animation_id != tmp->animation_id) if (op->animation_id) { f.put (KW_animation, animations[GET_ANIM_ID (op)].name); if (!QUERY_FLAG (op, FLAG_ANIMATE)) - f.put (KW_is_animated, 0); + f.put (KW_is_animated, (sint32)0); } else - f.put (KW_animation, "NONE"); + f.put (KW_animation, (const char *)0); CMP_OUT2 (str , stats.Str); CMP_OUT2 (dex , stats.Dex);