You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Add two shapes to a body
2. Delete the first one using DestroyShape
3. Delete the second one using DestroyShape
What is the expected output? What do you see instead?
Expected: Both shapes to be deleted.
Saw: First delete clobbers the shape list.
What version of the product are you using? On what operating system?
SVN Revision 56 (6/11/2008). Development Platform: Windows XP. Target
Platforms: XNA on PC and XBox.
Please provide any additional information below.
Looks like this has been ported correctly but the original code has a bug.
This has been fixed in the latest flash version. Not sure if it is fixed
in the C++ version.
Here is the code patched with the Flash Fix:
Shape ppS = null; // Fix pointer-pointer stuff
bool found = false;
while (node != null)
{
if (node == shape)
{
if (ppS != null)
{
ppS._next = shape._next;
}
else
{
_shapeList = shape._next;
}
//node = s.m_next;
found = true;
break;
}
ppS = node;
node = node._next;
}
Original issue reported on code.google.com by dale.fr...@gmail.com on 16 Jan 2009 at 4:05
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
dale.fr...@gmail.com
on 16 Jan 2009 at 4:05The text was updated successfully, but these errors were encountered: