mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 18:27:40 +00:00
@@ -6,7 +6,7 @@
|
||||
#include "rstl/optional_object.hpp"
|
||||
#include "rstl/reserved_vector.hpp"
|
||||
|
||||
template < typename T, size_t N >
|
||||
template < typename T, s32 N >
|
||||
class TReservedAverage : rstl::reserved_vector< T, N > {
|
||||
public:
|
||||
TReservedAverage(const T& value) {
|
||||
@@ -14,7 +14,7 @@ public:
|
||||
}
|
||||
void AddValue(const T& value) {
|
||||
push_back(value);
|
||||
for (size_t i = size() - 1; i > 0; --i) {
|
||||
for (s32 i = size() - 1; i > 0; --i) {
|
||||
operator[](i) = operator[](i - 1);
|
||||
}
|
||||
operator[](0) = value;
|
||||
|
||||
Reference in New Issue
Block a user