collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
895 stars 101 forks source link

Item location can be null for serialization #99

Open collinsmith opened 4 years ago

collinsmith commented 4 years ago

When moving around an item the location changes as expected, however for unrepresented states, the location is set to null. This causes an issue when the item needs to be serialized and sent over the network. Possible solutions could be to set null to some unique value if there's room (to be resolved as null), or to define custom location ordinals.