MichaelSinsbeck / platformer

A ninja platformer written in LÖVE
7 stars 0 forks source link

Dragging objects crashes level editor #189

Closed Germanunkol closed 10 years ago

Germanunkol commented 10 years ago
Error: editor/editorMap.lua:1220: attempt to perform arithmetic on field 'width' (a nil value)
stack traceback:
editor/editorMap.lua:1220: in function 'dragObject'
editor/editor.lua:819: in function 'update'
main.lua:61: in function 'update'
[string "boot.lua"]:434: in function <[string "boot.lua"]:399>
[C]: in function 'xpcall'

I think this happens since you changed the width fields. It's probably something simple, but I'm really tired... might fix it tomorrow.

michalove commented 10 years ago

It's my fault. Let me fix it.

Edit: Done. Please report, if anything else goes wrong.

Germanunkol commented 10 years ago

Thanks! Works great.