mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +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;
|
||||
}
|
||||
|
||||
bool Merc::Dismiss() {
|
||||
Client* mercOwner;
|
||||
bool Merc::Dismiss(){
|
||||
|
||||
if(GetMercOwner()) {
|
||||
mercOwner = GetMercOwner();
|
||||
}
|
||||
Client* mercOwner = GetMercOwner();
|
||||
|
||||
if(!mercOwner)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user