summaryrefslogtreecommitdiff
path: root/ZAPD/ZTexture.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-10-16 22:21:04 -0300
committerGitHub <noreply@github.com>2021-10-16 21:21:04 -0400
commitd0cd6b3974706fc4d89c9b6545b8c17dd424b664 (patch)
treeadce2c5394489cab708303e63b80e697dd6c16cc /ZAPD/ZTexture.cpp
parente243634e5b0e7a7e3a6a5b2e7e9d73676df956ca (diff)
Fix static forward declarations for remaining resources (#202)
* Add sizes to almost every extracted array * Remove redundant stuff in zfile (cherry picked from commit c1cbf20f6786994dabdaf9e0cb95549fe7adcf34) * this is dumb * format * Fix merge issue * whoops
Diffstat (limited to 'ZAPD/ZTexture.cpp')
-rw-r--r--ZAPD/ZTexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZTexture.cpp b/ZAPD/ZTexture.cpp
index 49ac16c..33ee54d 100644
--- a/ZAPD/ZTexture.cpp
+++ b/ZAPD/ZTexture.cpp
@@ -763,8 +763,8 @@ Declaration* ZTexture::DeclareVar(const std::string& prefix,
}
}
- Declaration* decl = parent->AddDeclarationIncludeArray(rawDataIndex, incStr, GetRawDataSize(),
- GetSourceTypeName(), auxName, 0);
+ Declaration* decl = parent->AddDeclarationIncludeArray(
+ rawDataIndex, incStr, GetRawDataSize(), GetSourceTypeName(), auxName, GetRawDataSize() / 8);
decl->staticConf = staticConf;
return decl;
}