core(fix): Fixes type aliasing, categorizations, and NPE (#444)
- [X] Fixes lookup of type aliases - [X] Fixes categorization - [X] Removes rebuild categorizations - [X] Fixes an NPE with DoHarmful and Combatant Closes #441
This commit is contained in:
parent
24ebdd0f90
commit
5d9ebf062f
17 changed files with 3821 additions and 4881 deletions
|
|
@ -218,7 +218,11 @@ namespace Server.Gumps
|
|||
|
||||
if (node is CAGObject obj)
|
||||
{
|
||||
var itemID = obj.ItemID;
|
||||
var itemID = obj.ItemID ?? 0;
|
||||
if (itemID == 0)
|
||||
{
|
||||
Console.WriteLine("Type {0} does not have a valid item id or shrink table entry.", obj.Type);
|
||||
}
|
||||
|
||||
var bounds = ItemBounds.Table[itemID];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue