diff options
author | Jean-Patrick Guerrero <kilbith@users.noreply.github.com> | 2021-03-21 23:23:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 23:23:30 +0100 |
commit | c9eba8440d3dc293a8aa6ffafc045737732da1e1 (patch) | |
tree | e962e55e70b2e8642e26e29b95f67ebe29e3ab86 /src | |
parent | afe988d83d00462af70730237362f0d42eb7c638 (diff) | |
download | minetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.tar.gz minetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.tar.bz2 minetest-c9eba8440d3dc293a8aa6ffafc045737732da1e1.zip |
Fix segfault for model[] without animation speed
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 4 |
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], ','); |