diff options
| author | louist103 <louist103@gmail.com> | 2022-08-04 16:58:10 -0400 |
|---|---|---|
| committer | louist103 <louist103@gmail.com> | 2022-08-04 16:58:10 -0400 |
| commit | 338b79d1c4a4e8d13d9924865f8d4ed72af11fdd (patch) | |
| tree | b7363abfd2760c83be7d787914cc6bfebc466a21 /ZAPD/ZArray.cpp | |
| parent | 27a8620dc7b72395dbb64907da11c4050077a10d (diff) | |
Surface types
Diffstat (limited to 'ZAPD/ZArray.cpp')
| -rw-r--r-- | ZAPD/ZArray.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ZAPD/ZArray.cpp b/ZAPD/ZArray.cpp index 3cf2392..0a9797b 100644 --- a/ZAPD/ZArray.cpp +++ b/ZAPD/ZArray.cpp @@ -95,7 +95,7 @@ Declaration* ZArray::DeclareVar(const std::string& prefix, const std::string& bo std::string ZArray::GetBodySourceCode() const { - std::string output = ""; + std::string output; for (size_t i = 0; i < arrayCnt; i++) { @@ -108,6 +108,7 @@ std::string ZArray::GetBodySourceCode() const case ZResourceType::Scalar: case ZResourceType::Vertex: case ZResourceType::CollisionPoly: + case ZResourceType::SurfaceType: output += resList.at(i)->GetBodySourceCode(); break; @@ -126,7 +127,7 @@ std::string ZArray::GetBodySourceCode() const size_t ZArray::GetRawDataSize() const { size_t size = 0; - for (auto res : resList) + for (const auto res : resList) size += res->GetRawDataSize(); return size; } |
