diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
commit | d97189f055798b5b2051c1c5770a3def62747461 (patch) | |
tree | d66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/playerrelations.cpp | |
parent | 25dce1399e40f24809842303d48ef090439de1e5 (diff) | |
download | manaverse-d97189f055798b5b2051c1c5770a3def62747461.tar.gz manaverse-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2 manaverse-d97189f055798b5b2051c1c5770a3def62747461.tar.xz manaverse-d97189f055798b5b2051c1c5770a3def62747461.zip |
Improve perfomance in some object constructors.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 4 |
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() : |