Restore the use of a separate class for town preset creatures

This commit is contained in:
2015-01-22 22:26:43 -05:00
parent ac4441f33e
commit df6222abda
16 changed files with 48 additions and 55 deletions

View File

@@ -611,7 +611,7 @@ void writeTownToXml(ticpp::Printer&& data, cTown& town) {
for(size_t i = 0; i < town.max_monst(); i++) {
data.OpenElement("creature");
data.PushAttribute("id", i);
cCreature& preset = town.creatures(i);
cTownperson& preset = town.creatures(i);
data.PushElement("type", preset.number);
data.PushElement("attitude", preset.start_attitude);
data.PushElement("mobility", preset.mobility);