diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-10-16 22:21:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-16 21:21:04 -0400 |
| commit | d0cd6b3974706fc4d89c9b6545b8c17dd424b664 (patch) | |
| tree | adce2c5394489cab708303e63b80e697dd6c16cc /ZAPD/ZTexture.cpp | |
| parent | e243634e5b0e7a7e3a6a5b2e7e9d73676df956ca (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.cpp | 4 |
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; } |
