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

@ -5166,11 +5166,8 @@ bool Merc::Unsuspend(bool setMaxStats) {
}
bool Merc::Dismiss(){
Client* mercOwner;
if(GetMercOwner()) {
mercOwner = GetMercOwner();
}
Client* mercOwner = GetMercOwner();
if(!mercOwner)
return false;