Skip to content
Snippets Groups Projects
Unverified Commit ed8612ea authored by Kim Kulling's avatar Kim Kulling Committed by GitHub
Browse files

Merge pull request #4376 from assimp/kimkulling-lwo-enum-validation_issue4236-1

LWO: validate enum value before parsing it
parents a9e2864c 389fc11e
No related branches found
No related tags found
No related merge requests found
......@@ -83,9 +83,13 @@ AnimResolver::AnimResolver(std::list<Envelope> &_envelopes, double tick) :
(*it).old_first = 0;
(*it).old_last = (*it).keys.size() - 1;
if ((*it).keys.empty()) continue;
if ((*it).keys.empty()) {
continue;
}
if ((int)(*it).type < 1 || (int)(*it).type>EnvelopeType_Unknown) {
continue;
}
switch ((*it).type) {
// translation
case LWO::EnvelopeType_Position_X:
trans_x = &*it;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment