http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=754

--- Comment #6 from Bob the Hamster <[email protected]> 2009-10-15 
21:45:36 PDT ---
Okay, I figured out what is going on here. It is actually pretty simple, and I
am embarrassed I didn't notice it sooner.

plotscript, trigger bug 754, begin
  variable(parent, child)
  parent := create container(100, 100)
  child := load hero sprite(0)
  set parent(child, parent)
  free slice(parent)
  set hero x(child, 0)
end

Now the *expected* behavior here is that the "set hero x" at the end of this
script should fail gracefully. "child" still has the handle it got from "load
hero sprite", but the slot in the plotsprites() array that is indexed by that
handle did not get zeroed when we deleted the parent.

So how do we solve this? The ENABLE_SLICE_DEBUG hack I just added solves the
problem by brute force, but is there a better way?

-- 
Configure bugmail: 
http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to