diff --git a/src/scripting/backend/dynarrays.cpp b/src/scripting/backend/dynarrays.cpp index bbef14a8d6..bcfff6520d 100644 --- a/src/scripting/backend/dynarrays.cpp +++ b/src/scripting/backend/dynarrays.cpp @@ -72,12 +72,12 @@ template void ArrayMove(T *self, T* other) template int ArrayFind(T *self, U val) { - return self->Find(static_cast(val)); + return self->Find(static_cast(val)); } template int ArrayPush(T *self, U val) { - return self->Push(static_cast(val)); + return self->Push(static_cast(val)); } template bool ArrayPop(T *self) @@ -93,7 +93,7 @@ template void ArrayDelete(T *self, int index, int count) template void ArrayInsert(T *self, int index, U val) { //int oldSize = self->Size(); - self->Insert(index, static_cast(val)); + self->Insert(index, static_cast(val)); // Is this even necessary? All Insert does is inserting one defined element into the array and moving the rest. // It never creates empty tailing entries. fillcount in the macro will always be 0 //if (fill) { DYNARRAY_FILL_ITEMS_SKIP(1); } diff --git a/src/tarray.h b/src/tarray.h index 50e37e1ecc..bdbb7bb82d 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -108,7 +108,7 @@ public: typedef TIterator iterator; typedef TIterator const_iterator; - typedef typename T value_type; + typedef T value_type; iterator begin() {