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;
}
bool Merc::Dismiss() {
Client* mercOwner;
bool Merc::Dismiss(){
if(GetMercOwner()) {
mercOwner = GetMercOwner();
}
Client* mercOwner = GetMercOwner();
if(!mercOwner)
return false;