summaryrefslogtreecommitdiff
path: root/ZAPD/ZArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZArray.cpp')
-rw-r--r--ZAPD/ZArray.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp
index d7d546a..b1ba3a6 100644
--- a/ZAPD/ZArray.cpp
+++ b/ZAPD/ZArray.cpp
@@ -127,5 +127,9 @@ ZResourceType ZArray::GetResourceType() const
DeclarationAlignment ZArray::GetDeclarationAlignment() const
{
+ if (resList.size() == 0)
+ {
+ return DeclarationAlignment::Align4;
+ }
return resList.at(0)->GetDeclarationAlignment();
}