summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-21 04:01:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-21 04:02:07 +0300
commitdd3ac96d868e5a3e7c230832b25aacd24e03719e (patch)
tree395ddce26bd249a943c7158188fe52c48809e6a5 /src/resources/spritedef.cpp
parent8fdaa55cfc951459b0ee079839cdf40e88baa2af (diff)
downloadmv-dd3ac96d868e5a3e7c230832b25aacd24e03719e.tar.gz
mv-dd3ac96d868e5a3e7c230832b25aacd24e03719e.tar.bz2
mv-dd3ac96d868e5a3e7c230832b25aacd24e03719e.tar.xz
mv-dd3ac96d868e5a3e7c230832b25aacd24e03719e.zip
Fix possible crash. Move unsafe initialisations from static members.
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r--src/resources/spritedef.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index 79e665f4c..b6addba77 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -39,8 +39,7 @@
#include "debug.h"
-SpriteReference *SpriteReference::Empty = new SpriteReference(
- paths.getStringValue("spriteErrorFile"), 0);
+SpriteReference *SpriteReference::Empty = 0;
Action *SpriteDef::getAction(std::string action) const
{