summaryrefslogtreecommitdiff
path: root/src/resources/sprite/spritedef.cpp
diff options
context:
space:
mode:
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);