1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 08:05:18 +02:00

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

View File

@@ -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], ',');