summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r--src/resources/spritedef.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index cef158fa..89d2055f 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -35,12 +35,12 @@ class ImageSet;
struct SpriteReference
{
- static SpriteReference *Empty;
-
SpriteReference() {}
- SpriteReference(std::string sprite, int variant)
- { this->sprite = sprite; this->variant = variant; }
+ SpriteReference(std::string sprite, int variant):
+ sprite(sprite),
+ variant(variant)
+ {}
std::string sprite;
int variant;
@@ -49,11 +49,11 @@ struct SpriteReference
struct SpriteDisplay
{
std::string image;
- std::list<SpriteReference*> sprites;
+ std::list<SpriteReference> sprites;
std::list<std::string> particles;
};
-typedef std::list<SpriteReference*>::const_iterator SpriteRefs;
+typedef std::list<SpriteReference>::const_iterator SpriteRefs;
/*
* Remember those are the main action.