Fix segfault for model[] without animation speed

This commit is contained in:
Jean-Patrick Guerrero 2021-03-21 23:23:30 +01:00 committed by GitHub
parent afe988d83d
commit c9eba8440d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2745,8 +2745,8 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element)
} }
// Avoid length checks by resizing // Avoid length checks by resizing
if (parts.size() < 9) if (parts.size() < 10)
parts.resize(9); parts.resize(10);
std::vector<std::string> v_pos = split(parts[0], ','); std::vector<std::string> v_pos = split(parts[0], ',');
std::vector<std::string> v_geom = split(parts[1], ','); std::vector<std::string> v_geom = split(parts[1], ',');