aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJean-Patrick Guerrero <kilbith@users.noreply.github.com>2021-02-08 00:04:38 +0000
committerrubenwardy <rw@rubenwardy.com>2021-02-08 00:04:38 +0000
commit6591597430c8a06c579e2631fcdbb022ae12160d (patch)
treef41f8c560cd17167307c71689dc48585fbaa6582 /src/gui
parent857dbcd5728e2f18cdbb478d85f5861d5f0c7123 (diff)
downloadminetest-6591597430c8a06c579e2631fcdbb022ae12160d.tar.gz
minetest-6591597430c8a06c579e2631fcdbb022ae12160d.tar.bz2
minetest-6591597430c8a06c579e2631fcdbb022ae12160d.zip
Fix animation_image support in scroll containers
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 88ea77812..5aa6dc9ae 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -928,7 +928,7 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el
core::rect<s32> rect = core::rect<s32>(pos, pos + geom);
- GUIAnimatedImage *e = new GUIAnimatedImage(Environment, this, spec.fid,
+ GUIAnimatedImage *e = new GUIAnimatedImage(Environment, data->current_parent, spec.fid,
rect, texture_name, frame_count, frame_duration, m_tsrc);
if (parts.size() >= 7)