I get an error when using a multidimensional array with CGPoint in a property in the SKSpriteNode derived class. Only in these conditions.
Error:
EXC_BAD_INSTRUCTION (code = EXC_I386_INVOP, subcode = 0x0)
- I tried with
double worked - I tried with
CGPoint as a variable inside a function -> worked - I tried the error code with a class not obtained from
SKSpriteNode worked
Xcode 6.0 beta 2
Any ideas?
Here is my test code:
import SpriteKit class TestSprite: SKSpriteNode { var myOuterArray = Array<Array<CGPoint>>() var myOuterDoubleArray = Array<Array<Double>>() init() { super.init(texture:nil, color:UIColor.clearColor(), size: CGSizeZero) self.testWithInnerArray() self.testWithOuterArray() self.testWithOuterDoubleArray() }
source share