ID:261695
 
When i get attacked by an axe, i get a runtime error..

runtime error: Cannot read null.loc
proc name: New (/obj/battling/Axe/New)
usr: Unknown Person (/mob)
src: Axe (/obj/battling/Axe)
call stack:
Axe (/obj/battling/Axe): New(Unknown Person (/mob))
Unknown Person (/mob): Action1()
runtime error: Cannot read null.loc
proc name: New (/obj/battling/Axe/New)
usr: Unknown Person (/mob)
src: Axe (/obj/battling/Axe)
call stack:


Heres the axe...

Axe
icon_state = "Soldier1"
New(loc)
for(var/mob/M in M.loc)
M.HP-= rand(10)
flick('HitChatacters.dmi',M)
M.DeathCheck()

It also doesn't flick the 'HitChatacters.dmi' thing. It also does no damage.... Will somebody help me?
for(var/mob/M in src.loc)