diff options
author | orbitcowboy <ettl.martin78@gmail.com> | 2014-12-18 10:02:57 +0100 |
---|---|---|
committer | orbitcowboy <ettl.martin78@gmail.com> | 2014-12-18 10:02:57 +0100 |
commit | f44241ce1bc412168b74a3f009f98f4e981671e3 (patch) | |
tree | 25eeef034bda9b023676dedded5c5f2f602be231 | |
parent | 04362defe7c5cb0d41164dcc533f0383a0edb98b (diff) |
sprite_3d.cpp: fixed buffer access out of bounds.
-rw-r--r-- | scene/3d/sprite_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 77f2cf5cc1..1d2bce5a91 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -292,7 +292,7 @@ SpriteBase3D::SpriteBase3D() { parent_sprite=NULL; pI=NULL; - for(int i=0;i<4;i++) + for(int i=0;i<FLAG_MAX;i++) flags[i]=i==FLAG_TRANSPARENT; axis=Vector3::AXIS_Z; |