summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beinginfo.h8
-rw-r--r--src/resources/resource.h9
-rw-r--r--src/resources/spritedef.h5
3 files changed, 12 insertions, 10 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 8142cc194..4aa8f96c8 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -37,11 +37,11 @@ struct Attack
std::string missileParticle;
Attack(std::string action0, std::string particleEffect0,
- std::string missileParticle0)
+ std::string missileParticle0) :
+ action(action0),
+ particleEffect(particleEffect0),
+ missileParticle(missileParticle0)
{
- action = action0;
- particleEffect = particleEffect0;
- missileParticle = missileParticle0;
}
};
diff --git a/src/resources/resource.h b/src/resources/resource.h
index c0ea7ca23..1b62c0206 100644
--- a/src/resources/resource.h
+++ b/src/resources/resource.h
@@ -39,11 +39,14 @@ class Resource
/**
* Constructor
*/
- Resource(): mRefCount(0)
- {
+ Resource() :
#ifdef DEBUG_DUMP_LEAKS
- mDumped = false;
+ mRefCount(0),
+ mDumped(false)
+#else
+ mRefCount(0)
#endif
+ {
}
/**
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index b0cb5f1b6..461e60230 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -44,10 +44,9 @@ struct SpriteReference
sprite(""), variant(0)
{}
- SpriteReference(std::string sprite0, int variant0)
+ SpriteReference(std::string sprite0, int variant0) :
+ sprite(sprite0), variant(variant0)
{
- sprite = sprite0;
- variant = variant0;
}
std::string sprite;