mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 05:07:37 +00:00
Fixed uninitialised mercOwner highlighted by cppcheck.
This commit is contained in:
+1
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user