summaryrefslogtreecommitdiff
path: root/ZAPD/ZSkeleton.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-07-27 22:06:51 -0400
committerGitHub <noreply@github.com>2021-07-27 22:06:51 -0400
commit6be9af65d39a1608ef854efbaf0bf9399aac5da1 (patch)
treed991c4843a4b07c61e8751d1ea81b44f05fd04e5 /ZAPD/ZSkeleton.cpp
parent820678b4e97958d59b45597951841c129044cd45 (diff)
Fix unused enum value warning (#159)
* Fix Limb warning * another warning fixed
Diffstat (limited to 'ZAPD/ZSkeleton.cpp')
-rw-r--r--ZAPD/ZSkeleton.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ZAPD/ZSkeleton.cpp b/ZAPD/ZSkeleton.cpp
index cb7e372..3e530a1 100644
--- a/ZAPD/ZSkeleton.cpp
+++ b/ZAPD/ZSkeleton.cpp
@@ -1,4 +1,6 @@
#include "ZSkeleton.h"
+
+#include <cassert>
#include "BitConverter.h"
#include "HighLevel/HLModelIntermediette.h"
#include "StringHelper.h"
@@ -301,8 +303,12 @@ std::string ZLimbTable::GetSourceTypeName() const
case ZLimbType::Curve:
case ZLimbType::Legacy:
return StringHelper::Sprintf("%s*", ZLimb::GetSourceTypeName(limbType));
- ;
+
+ case ZLimbType::Invalid:
+ assert("Invalid limb type.\n");
}
+
+ return "ERROR";
}
ZResourceType ZLimbTable::GetResourceType() const