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:
committed by
GitHub
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], ',');
|
||||
|
Reference in New Issue
Block a user