Skip to content

Commit

Permalink
Fix segfault for model[] without animation speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Patrick Guerrero committed Mar 21, 2021
1 parent afe988d commit c9eba84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/guiFormSpecMenu.cpp
Expand Up @@ -2745,8 +2745,8 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element)
}

// Avoid length checks by resizing
if (parts.size() < 9)
parts.resize(9);
if (parts.size() < 10)
parts.resize(10);

std::vector<std::string> v_pos = split(parts[0], ',');
std::vector<std::string> v_geom = split(parts[1], ',');
Expand Down

0 comments on commit c9eba84

Please sign in to comment.