From 434cbc2150c09e52585b9234bb81f51a49effc7d Mon Sep 17 00:00:00 2001 From: ApoC Date: Sat, 2 May 2009 00:08:38 +0200 Subject: [PATCH] [7743] Coding style fix. Signed-off-by: ApoC --- src/game/Unit.cpp | 7 +++---- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index a2928a43e..c5cd3e97e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7344,10 +7344,9 @@ void Unit::ModifyAuraState(AuraState flag, bool apply) Unit *Unit::GetOwner() const { - uint64 ownerid = GetOwnerGUID(); - if(!ownerid) - return NULL; - return ObjectAccessor::GetUnit(*this, ownerid); + if(uint64 ownerid = GetOwnerGUID()) + return ObjectAccessor::GetUnit(*this, ownerid); + return NULL; } Unit *Unit::GetCharmer() const diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c192d31ba..0ead86321 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7742" + #define REVISION_NR "7743" #endif // __REVISION_NR_H__