ID:142986
 
Code:
Entered(var/mob/char/c)
if(c.client)
var/battle/b = new
b.start_battle(c,g,null,null)


Problem description:
Well this is a trimmed down version of a proc.
"g" is defined and everything, it's not really the problem.
What puzzels me is the following.

I get an error:
Cannot read null.t_status
proc name: win check (/battle/proc/win_check)
source file: battle.dm,1146
usr: null
src: /battle (/battle)

All nice and well, not a strange error but when i check the call stack I find teh source to be here:

Entered(null, the grass (96,50,10) (/turf/outside/nature/grass))

Which is the code I gave on the top of the report.
Now how can this error be generated when there has to clearly be a client to begin with to call the start_battle proc.
Is the text of the procs listed in the stack generated once the error occures or is whats listed actually how it's called?

Just made me really curious.


The error message is telling you the current value of the variables. So, at some point, usr is getting deleted.
In response to Garthor
Thanks, this pretty much made clear for me what to do.