openkore icon indicating copy to clipboard operation
openkore copied to clipboard

ActorList and InventoryList conflict with Actor::Item

Open Henrybk opened this issue 9 years ago • 0 comments

There are two problems which need to be dealt with:

1 - assert(defined $item->{name}) in InventoryList::add is totally unnecessary if $item->{name} is by default Uninitialized Item.

2 - assert(defined $actor->{ID}) in ActorList::add is totally unnecessary if $item->{ID} is by default 0.

I suggest we remove the definitions of $self->{name} and $self->{ID} in Actor::Item.

Henrybk avatar Dec 24 '16 02:12 Henrybk