mirror of
https://github.com/minetest/minetest.git
synced 2024-11-26 17:43:45 +01:00
Fix segfault for model[] without animation speed
This commit is contained in:
parent
afe988d83d
commit
c9eba8440d
@ -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], ',');
|
||||
|
Loading…
Reference in New Issue
Block a user