fix unit tests

This commit is contained in:
2022-07-08 22:29:23 -04:00
parent 5b2561d034
commit df631f6c3c
4 changed files with 4 additions and 4 deletions

View File

@@ -724,7 +724,7 @@ std::ostream& operator<< (std::ostream& out, ePicType pic) {
}
std::istream& operator>> (std::istream& in, ePicType& pic) {
if(!readEnum(in, pic, pic_type_strs, PIC_NONE))
if(!readEnum(in, pic, pic_type_strs, NUM_PIC_TYPES))
in.setstate(std::ios::failbit);
return in;
}

View File

@@ -1685,7 +1685,7 @@ void readTownFromXml(ticpp::Document&& data, cTown*& town, cScenario& scen) {
if(num_timers >= 8)
throw xBadNode(type, elem->Row(), elem->Column(), fname);
readTimerFromXml(*elem, town->timers[num_timers]);
town->timers[num_timers].node_type = eSpecCtxType::SCEN;
town->timers[num_timers].node_type = eSpecCtxType::TOWN;
num_timers++;
} else if(type == "flags") {
Iterator<Element> flag;