summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Patrick Guerrero <kilbith@users.noreply.github.com>2021-03-21 23:23:30 +0100
committerGitHub <noreply@github.com>2021-03-21 23:23:30 +0100
commitc9eba8440d3dc293a8aa6ffafc045737732da1e1 (patch)
treee962e55e70b2e8642e26e29b95f67ebe29e3ab86
parentafe988d83d00462af70730237362f0d42eb7c638 (diff)
downloadminetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.tar.gz
minetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.tar.bz2
minetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.zip
Fix segfault for model[] without animation speed
-rw-r--r--src/gui/guiFormSpecMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 4661e505d..fd35f2d84 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/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], ',');