Fix crash when loading party death dialog

This commit is contained in:
2014-12-22 20:15:12 -05:00
parent 18a78e9526
commit d193c0da7b

View File

@@ -135,6 +135,11 @@ template<> pair<string,cPict*> cDialog::parse(Element& who /*pict*/){
attr->GetValue(&width);
}else if(name == "height"){
attr->GetValue(&height);
}else if(name == "framed"){
std::string val;
attr->GetValue(&val);
if(val == "true") p.second->setFormat(TXT_FRAME, true);
else p.second->setFormat(TXT_FRAME, false);
}else throw xBadAttr("pict",name,attr->Row(),attr->Column(),fname);
}
if(!foundType) throw xMissingAttr("pict","type",who.Row(),who.Column(),fname);