[Cleanup] Remove unnecessary validation check in Zone::ClearBlockedSpells() (#3172)

# Notes
- This is unnecessary, since `safe_delete_array` checks for validity.
This commit is contained in:
Alex King 2023-04-01 13:59:03 -04:00 committed by GitHub
parent 6927177291
commit b6d315d803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2230,10 +2230,9 @@ void Zone::LoadZoneBlockedSpells()
void Zone::ClearBlockedSpells()
{
if (blocked_spells) {
safe_delete_array(blocked_spells);
zone_total_blocked_spells = 0;
}
}
bool Zone::IsSpellBlocked(uint32 spell_id, const glm::vec3 &location)