From cc78eca07666eec99f1a09d809568970e968b52d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 Apr 2016 15:27:42 +0300 Subject: Add name into Action memory object. --- src/resources/sprite/spritedef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/sprite/spritedef.cpp') diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp index 066d0b827..a19c1b267 100644 --- a/src/resources/sprite/spritedef.cpp +++ b/src/resources/sprite/spritedef.cpp @@ -275,7 +275,7 @@ void SpriteDef::loadAction(const XmlNodePtr node, actionName.c_str(), getIdPath().c_str()); return; } - Action *const action = new Action; + Action *const action = new Action(actionName); action->setNumber(hp); addAction(hp, actionName, action); -- cgit v1.2.3-60-g2f50