Menu

#483 Discrepancy in number of private variables breaks object

Bug report
open
5
2009-03-31
2008-12-28
Anonymous
No

I have an object with two private variables. When I paste it into a different .cap, even a blank one, I get an error message: "Error in Private Variables! The selected object has 0 variables, but the selected instance has 2. Please report this bug to Scirra!"

(Then I can't edit the object; if I try, I get the same error message.)

Could be related to the way that objects lose behaviours when they're copied and pasted; maybe they lose private variables too?

Enclosed: both the game I pasted the object from, and a blank one with just the buggy object.

Email address is mort.dengate@gmail.com. Sorry, I'll sign up for a SF account next time!

Discussion

  • Nobody/Anonymous

     
  • Nobody/Anonymous

    I get this same error when cutting-and-pasting an object that has zero private variables but it belongs to a family that has some private variables.

    The steps to recreate:
    1.) Create a sprite.
    2.) Add the sprite to a family with private variables.
    3.) copy/paste the sprite.

     
  • Rich Whilding

    Rich Whilding - 2009-03-31
    • milestone: --> Bug report
    • assigned_to: nobody --> richw87
     

Log in to post a comment.