From 417aa071dcae6410724426c71189b773d36a0cbb Mon Sep 17 00:00:00 2001 From: Skidd13 Date: Mon, 25 Jan 2010 18:56:47 +0100 Subject: [PATCH 1/4] -Fix: SmallArray wasn't usable for all types --- src/misc/array.hpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/array.hpp b/src/misc/array.hpp index 78dd009..1da5027 100644 --- a/src/misc/array.hpp +++ b/src/misc/array.hpp @@ -17,7 +17,7 @@ /** Flexible array with size limit. Implemented as fixed size * array of fixed size arrays */ -template +template class SmallArray { protected: typedef FixedSizeArray SubArray; ///< inner array @@ -62,7 +62,7 @@ public: /** indexed access (non-const) */ FORCEINLINE T& operator [] (uint index) { - const SubArray& s = data[index / B]; + SubArray& s = data[index / B]; T& item = s[index % B]; return item; } -- 1.6.6