refactor(Scripts/Commands): code cleanup (part 4) (#6921)

This commit is contained in:
Francesco Borzì
2021-07-18 13:25:44 +02:00
committed by GitHub
parent a57c4fd3b8
commit fab0fc421b
9 changed files with 53 additions and 53 deletions

View File

@@ -1085,7 +1085,7 @@ public:
if (creature)
{
// update movement type
if (doNotDelete == false)
if (!doNotDelete)
creature->LoadPath(0);
creature->SetDefaultMovementType(move_type);
@@ -1097,7 +1097,7 @@ public:
}
creature->SaveToDB();
}
if (doNotDelete == false)
if (!doNotDelete)
{
handler->PSendSysMessage(LANG_MOVE_TYPE_SET, type_str);
}