Core/Misc: Cleanups

This commit is contained in:
hondacrx
2018-03-04 23:42:27 -05:00
parent b067976678
commit 3fc07b8b37
5 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ namespace Game.Maps
continue;
}
if (goInfo.MoTransport.taxiPathID >= CliDB.TaxiPathNodesByPath.Keys.Max())
if (!CliDB.TaxiPathNodesByPath.ContainsKey(goInfo.MoTransport.taxiPathID))
{
Log.outError(LogFilter.Sql, "Transport {0} (name: {1}) has an invalid path specified in `gameobject_template`.`data0` ({2}) field, skipped.", entry, goInfo.name, goInfo.MoTransport.taxiPathID);
continue;