Transform: Entity convenience procs | Static Array: Fixed off by one error in assert
This commit is contained in:
@@ -4,7 +4,7 @@ Static_Array :: struct (Data_Type : Type, Count: s64) {
|
||||
}
|
||||
|
||||
array_add :: (static_array: *Static_Array, value: static_array.Data_Type) {
|
||||
assert(static_array.count <= static_array.Count);
|
||||
assert(static_array.count < static_array.Count);
|
||||
static_array.data[static_array.count] = value;
|
||||
static_array.count += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user