summaryrefslogtreecommitdiff
path: root/src/resources/sprite/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-10 16:40:52 +0300
commit4df1e68047488ec00a264c076bb3222715f42295 (patch)
tree22ea99ebcd00a6c9d6da0729706b765a49085c5f /src/resources/sprite/spritedef.cpp
parentbfc5d7483c0a81409ebf08603f634e88b8db03f8 (diff)
downloadmanaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.gz
manaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.bz2
manaverse-4df1e68047488ec00a264c076bb3222715f42295.tar.xz
manaverse-4df1e68047488ec00a264c076bb3222715f42295.zip
Fix new style issue detected by mplint.
new class() -> new class
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 544729d6a..3eb30d27d 100644
--- a/src/resources/sprite/spritedef.cpp
+++ b/src/resources/sprite/spritedef.cpp
@@ -565,7 +565,7 @@ void SpriteDef::addAction(const unsigned hp, const std::string &name,
{
const Actions::const_iterator i = mActions.find(hp);
if (i == mActions.end())
- mActions[hp] = new ActionMap();
+ mActions[hp] = new ActionMap;
(*mActions[hp])[name] = action;
}