mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[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:
parent
6927177291
commit
b6d315d803
@ -2230,10 +2230,9 @@ void Zone::LoadZoneBlockedSpells()
|
|||||||
|
|
||||||
void Zone::ClearBlockedSpells()
|
void Zone::ClearBlockedSpells()
|
||||||
{
|
{
|
||||||
if (blocked_spells) {
|
safe_delete_array(blocked_spells);
|
||||||
safe_delete_array(blocked_spells);
|
|
||||||
zone_total_blocked_spells = 0;
|
zone_total_blocked_spells = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Zone::IsSpellBlocked(uint32 spell_id, const glm::vec3 &location)
|
bool Zone::IsSpellBlocked(uint32 spell_id, const glm::vec3 &location)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user