Update client.cpp

This commit is contained in:
Paul Coene 2020-04-02 11:54:19 -04:00 committed by GitHub
parent 15dde4778a
commit 803c3aabe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8757,6 +8757,11 @@ void Client::CheckRegionTypeChanges()
if (last_region_type == new_region)
return;
// If we got out of water clear any water aggro for water only npcs
if (last_region_type == RegionTypeWater) {
entity_list.ClearWaterAggro(this);
}
// region type changed
last_region_type = new_region;