Fixed uninitialised mercOwner highlighted by cppcheck.

This commit is contained in:
Derision 2013-03-03 22:12:14 +00:00
parent ff9e4e0780
commit aceaba0fb0

View File

@ -5165,12 +5165,9 @@ bool Merc::Unsuspend(bool setMaxStats) {
return true; return true;
} }
bool Merc::Dismiss() { bool Merc::Dismiss(){
Client* mercOwner;
if(GetMercOwner()) { Client* mercOwner = GetMercOwner();
mercOwner = GetMercOwner();
}
if(!mercOwner) if(!mercOwner)
return false; return false;