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/playerrelations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/playerrelations.cpp') diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 602ceb7ad..59e7de05e 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -119,9 +119,9 @@ const unsigned int PlayerRelation::RELATION_PERMISSIONS[RELATIONS_NR] = /* ENEMY2 */ EMOTE | SPEECH_FLOAT | SPEECH_LOG | WHISPER | TRADE }; -PlayerRelation::PlayerRelation(Relation relation) +PlayerRelation::PlayerRelation(Relation relation) : + mRelation(relation) { - mRelation = relation; } PlayerRelationsManager::PlayerRelationsManager() : -- cgit v1.2.3-70-g09d2