[7743] Coding style fix.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-05-02 00:08:38 +02:00
parent 8168b0f2eb
commit 434cbc2150
2 changed files with 4 additions and 5 deletions

View file

@ -7344,10 +7344,9 @@ void Unit::ModifyAuraState(AuraState flag, bool apply)
Unit *Unit::GetOwner() const Unit *Unit::GetOwner() const
{ {
uint64 ownerid = GetOwnerGUID(); if(uint64 ownerid = GetOwnerGUID())
if(!ownerid)
return NULL;
return ObjectAccessor::GetUnit(*this, ownerid); return ObjectAccessor::GetUnit(*this, ownerid);
return NULL;
} }
Unit *Unit::GetCharmer() const Unit *Unit::GetCharmer() const

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7742" #define REVISION_NR "7743"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__