summaryrefslogtreecommitdiff
path: root/ZAPD/ZArray.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-06-10 15:29:09 -0400
committerGitHub <noreply@github.com>2021-06-10 15:29:09 -0400
commit602e609c8036fd4e5dbd3aa2e1a6df59fa6a07ef (patch)
tree6c3d80434649e2a085df975ad99a57d3996369bc /ZAPD/ZArray.cpp
parent17fb7de37389f80285360b05e3fa188a97d77cb6 (diff)
Add `OutName` attribute to `<File>` node (#146)
* create attribute * Minor fixes * Remove redundant `outputPath` * Add `OutName` to docs * Whoops, wrong branch
Diffstat (limited to 'ZAPD/ZArray.cpp')
-rw-r--r--ZAPD/ZArray.cpp2
1 files changed, 1 insertions, 1 deletions
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);