… | |
… | |
812 | /* set creature race to race value */ |
812 | /* set creature race to race value */ |
813 | if ((mon = archetype::find (cp)) == NULL) |
813 | if ((mon = archetype::find (cp)) == NULL) |
814 | LOG (llevError, "Creature %s in race file lacks archetype\n", cp); |
814 | LOG (llevError, "Creature %s in race file lacks archetype\n", cp); |
815 | else |
815 | else |
816 | { |
816 | { |
817 | if (set_race && (!mon->race || strcmp (mon->race, race))) |
817 | if (set_race && (!mon->race || strcmp (&mon->race, race))) |
818 | { |
818 | { |
819 | if (mon->race) |
819 | if (mon->race) |
820 | LOG (llevDebug, "Resetting race to %s from %s for archetype %s\n", race, &mon->race, &mon->archname); |
820 | LOG (llevDebug, "Resetting race to %s from %s for archetype %s\n", race, &mon->race, &mon->archname); |
821 | |
821 | |
822 | mon->race = race; |
822 | mon->race = race; |