summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-23 00:10:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-23 00:10:43 +0300
commitd97189f055798b5b2051c1c5770a3def62747461 (patch)
treed66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/playerrelations.cpp
parent25dce1399e40f24809842303d48ef090439de1e5 (diff)
downloadmv-d97189f055798b5b2051c1c5770a3def62747461.tar.gz
mv-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2
mv-d97189f055798b5b2051c1c5770a3def62747461.tar.xz
mv-d97189f055798b5b2051c1c5770a3def62747461.zip
Improve perfomance in some object constructors.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp4
1 files changed, 2 insertions, 2 deletions
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() :