anhero / BaconBox

0 stars 1 forks source link

setChildIndex unexpected behaviour (does nothing instead of crashing) #6

Open eniotna308 opened 9 years ago

eniotna308 commented 9 years ago

The function DefaultEntityContainer::setChildIndex and setChildIndex in As3 does not have the same behaviour when the child parameter isn't a child of the object it's called on.

The function DefaultEntityContainer::setChildIndex will ignore the problem and do nothing while the As3 function will crash.

(Fixed the FlashEntityContainer::setChildIndex to don't crash. Expected behaviour might be to crash in both cases.)

eniotna308 commented 9 years ago

Removed the exception on FlashEntityContainer::setChildIndex. It now crash as expected.

Made DefaultEntityContainer::setChildIndex close the program with an error message alike the one in Flash.