diff --git a/src/scripting/backend/dynarrays.cpp b/src/scripting/backend/dynarrays.cpp index 15b0161665..147ab89f80 100644 --- a/src/scripting/backend/dynarrays.cpp +++ b/src/scripting/backend/dynarrays.cpp @@ -121,9 +121,9 @@ template void ArrayResize(T *self, int amount) } } -template void ArrayReserve(T *self, int amount) +template unsigned int ArrayReserve(T *self, int amount) { - self->Reserve(amount); + return self->Reserve(amount); } template int ArrayMax(T *self)