runtime error: Cannot read .type
proc name: MOVE (/atom/movable/proc/MOVE)
source file: Pixel Movement.dm,32
usr: Jeff8500 (/mob)
src: Jeff8500 (/mob)
call stack:
Jeff8500 (/mob): MOVE(0, 1)
Jeff8500 (/mob): UP()
var/controller/control = new
controller
var/list/move = new
var/paused
New()
..()
for()
if(!paused)
for(var/atom/movable/A in move)
var/move_container/MC = move[A]
A.pix_move(MC.x,MC.y)
move -= A
sleep(world.tick_lag)
proc/add(atom/movable/A,x,y)
move[A] = new /move_container(x,y)
Del()
world << "FOIK"
..()
atom/movable/proc/MOVE(x=0,y=0)
world << "[control.type]"
control.add(src,x,y)
The control datum does exist (it is never deleted, I checked by sending a debug message to the log and output, and got nothing). It just doesn't seem to want to read it's vars, such as type and move (and it claims it is null when I called add()).