From d97189f055798b5b2051c1c5770a3def62747461 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 23 Jul 2012 00:10:43 +0300 Subject: Improve perfomance in some object constructors. --- src/particleemitter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/particleemitter.cpp') diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index 4ba8c9c6b..918f25570 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -41,13 +41,12 @@ ParticleEmitter::ParticleEmitter(XmlNodePtr emitterNode, Particle *target, Map *map, int rotation, - const std::string& dyePalettes): + const std::string& dyePalettes) : + mParticleTarget(target), + mMap(map), mOutputPauseLeft(0), mParticleImage(nullptr) { - mMap = map; - mParticleTarget = target; - // Initializing default values mParticlePosX.set(0.0f); mParticlePosY.set(0.0f); -- cgit v1.2.3-70-g09d2