fix(core): Fixes bad check for verifying types (#662)

This commit is contained in:
Kamron Batman 2021-07-19 21:50:29 -07:00 • committed by GitHub
parent bd34e2fb0d
commit c9ce597573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -557,7 +557,7 @@ namespace Server
{
Interlocked.Increment(ref _itemCount);
}
else if (!type.IsSubclassOf(typeof(Mobile)))
else if (type.IsSubclassOf(typeof(Mobile)))
{
Interlocked.Increment(ref _mobileCount);
}