diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2023-01-07 18:54:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 18:54:51 -0500 |
| commit | 23929ec9373d28cb298daad4ad7cb468e09c0a46 (patch) | |
| tree | fc867721b8fdb6935d7c9af52ab4575aef680b34 | |
| parent | 5786abbdd2d0fd14907e03575a0bd972c1fe9b28 (diff) | |
Always set params type (#274)
* Update ZTextureAnimation.cpp
* fix crash
| -rw-r--r-- | ZAPD/ZTextureAnimation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZTextureAnimation.cpp b/ZAPD/ZTextureAnimation.cpp index 698054f..0c55b26 100644 --- a/ZAPD/ZTextureAnimation.cpp +++ b/ZAPD/ZTextureAnimation.cpp @@ -569,6 +569,7 @@ void ZTextureAnimation::DeclareReferences(const std::string& prefix) count = 2; } params = new TextureScrollingParams(parent); + params->type = entry.type; params->ExtractFromBinary(paramsOffset, count); break; @@ -582,6 +583,7 @@ void ZTextureAnimation::DeclareReferences(const std::string& prefix) case TextureAnimationParamsType::TextureCycle: params = new TextureCyclingParams(parent); + params->type = entry.type; params->ExtractFromBinary(paramsOffset); break; |
