summaryrefslogtreecommitdiff
path: root/src/resources/sprite/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 15:27:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 15:27:42 +0300
commitcc78eca07666eec99f1a09d809568970e968b52d (patch)
tree2c012ecca6a34b25766d3ff6af83d76b8c7ff0f1 /src/resources/sprite/spritedef.cpp
parent7c020abf511236e2c56fa1c6b6c1b8f248aa8582 (diff)
downloadmanaverse-cc78eca07666eec99f1a09d809568970e968b52d.tar.gz
manaverse-cc78eca07666eec99f1a09d809568970e968b52d.tar.bz2
manaverse-cc78eca07666eec99f1a09d809568970e968b52d.tar.xz
manaverse-cc78eca07666eec99f1a09d809568970e968b52d.zip
Add name into Action memory object.
Diffstat (limited to 'src/resources/sprite/spritedef.cpp')
-rw-r--r--src/resources/sprite/spritedef.cpp2
1 files changed, 1 insertions, 1 deletions
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);