zorfmorf / beneath

Completely new implementation of mayoran
0 stars 0 forks source link

Nilpointer exception when sorting objectdraworder after objects have been removed #8

Closed zorfmorf closed 10 years ago

zorfmorf commented 10 years ago

This has probably something to do with an object not properly being removed from the drawOrder array.

Error: model/world.lua:158: attempt to index a nil value
stack traceback:
    model/world.lua:158: in function <model/world.lua:158>
    [C]: in function 'sort'
    model/world.lua:157: in function 'addObject'
    model/object.lua:175: in function 'work'
    model/char.lua:43: in function 'update'
    model/world.lua:167: in function 'update'
    main.lua:45: in function 'update'
    [string "boot.lua"]:434: in function <[string "boot.lua"]:399>
zorfmorf commented 10 years ago

This is caused by ressources still being created client side. As soon as server side ressource handling is implemented, this issue will fix itself.