From d193c0da7bd02a1e59aade03c88ceb4ff16491fc Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 22 Dec 2014 20:15:12 -0500 Subject: [PATCH] Fix crash when loading party death dialog --- osx/dialogxml/dialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osx/dialogxml/dialog.cpp b/osx/dialogxml/dialog.cpp index 29a5f5a79..747397568 100644 --- a/osx/dialogxml/dialog.cpp +++ b/osx/dialogxml/dialog.cpp @@ -135,6 +135,11 @@ template<> pair 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);