From 602e609c8036fd4e5dbd3aa2e1a6df59fa6a07ef Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Thu, 10 Jun 2021 15:29:09 -0400 Subject: Add `OutName` attribute to `` node (#146) * create attribute * Minor fixes * Remove redundant `outputPath` * Add `OutName` to docs * Whoops, wrong branch --- ZAPD/ZArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ZAPD/ZArray.cpp') diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp index e904c99..e514960 100644 --- a/ZAPD/ZArray.cpp +++ b/ZAPD/ZArray.cpp @@ -22,7 +22,7 @@ void ZArray::ParseXML(tinyxml2::XMLElement* reader) { ZResource::ParseXML(reader); - arrayCnt = StringHelper::StrToL(registeredAttributes.at("Count").value, 0); + arrayCnt = reader->IntAttribute("Count", 0); // TODO: do a better check. assert(arrayCnt > 0); -- cgit v1.2.3