-Enter the code below into a new DM environment.
-Add a map
Code Snippet (if applicable) to Reproduce Problem:
turf
var/testa/part=new(new/testb())
New()
.=..()
part.add()
testa
var/testb/part
New(p)
.=..()
part=p
proc/add() return part.add()
testb
proc/add()
return 1+1
Expected Results:
testb.add() should be called once for every turf placed on the map.
Actual Results:
The testb object is never instantiated,d a run time error occurs, "Cannot execute null.add()." and the testb.add proc is not called.
Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
When does the problem NOT occur?
I haven't done much testing yet, but I believe that this happens only if the 'original' object is initialized as the server is started (eg here it is placed on the map). Additionally, I have found that if you change the type in the example from turf to obj and put one on the map, then everything works as expected.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Not sure.
Workarounds:
Not sure yet.