From aa6e3570dfcc4f10430855664b7e56dff4660f28 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 25 Aug 2014 00:37:36 +0200 Subject: [PATCH] Fix attempt for crash. --- src/graphics/stkinstancedscenenode.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/stkinstancedscenenode.hpp b/src/graphics/stkinstancedscenenode.hpp index c6787a02f..d3fe05b32 100644 --- a/src/graphics/stkinstancedscenenode.hpp +++ b/src/graphics/stkinstancedscenenode.hpp @@ -40,7 +40,7 @@ public: virtual void render(); void addInstance(const core::vector3df &origin, const core::vector3df &orientation, const core::vector3df &scale); - int getInstanceCount() const { return instanceData.size(); } + int getInstanceCount() const { return instanceData[0].size(); } core::matrix4 getInstanceTransform(int id);