Skip to content
Permalink
Browse files

Fix segfault for model[] without animation speed

  • Loading branch information
kilbith committed Mar 21, 2021
1 parent afe988d commit c9eba8440d3dc293a8aa6ffafc045737732da1e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/guiFormSpecMenu.cpp
@@ -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], ',');

0 comments on commit c9eba84

Please sign in to comment.