mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 18:47:35 +00:00
Fixed uninitialised mercOwner highlighted by cppcheck.
This commit is contained in:
+2
-5
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user