Misc fixes

This commit is contained in:
hondacrx
2022-07-29 17:24:07 -04:00
parent 888fd11477
commit 114747fc4b
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1780,7 +1780,8 @@ namespace Game.Entities
{
while (!m_removedAuras.Empty())
{
m_removedAuras.Remove(m_removedAuras.First());
m_removedAuras.First().Dispose();
m_removedAuras.RemoveAt(0);
}
m_removedAurasCount = 0;
+1 -1
View File
@@ -64,7 +64,7 @@ namespace Game
continue;
}
if (!CliDB.MapStorage.ContainsKey(mapId) && mapId != AnyMap)
if (mapId != AnyMap && !CliDB.MapStorage.ContainsKey(mapId))
{
Log.outError(LogFilter.Sql, $"Table `world_state` contains a world state {id} with invalid MapID ({mapId}), map ignored");
continue;