summaryrefslogtreecommitdiff
path: root/src/util/allocator.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-14 01:12:57 +0100
committerday <day@national.shitposting.agency>2026-03-15 19:20:13 +0100
commitfed4ed30fa727e528aa4ee3fad1b5123e022c6be (patch)
tree0053800c66ee101d4119d4ad6362631391e9647a /src/util/allocator.h
parentc205cb8ac24c0a34960c41879708e7c25c19a353 (diff)
fix textures in 2d render, some bugfix
Diffstat (limited to 'src/util/allocator.h')
-rw-r--r--src/util/allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/allocator.h b/src/util/allocator.h
index ff3d3c5..327dfc1 100644
--- a/src/util/allocator.h
+++ b/src/util/allocator.h
@@ -76,9 +76,9 @@ struct LIST {
size = 0;
}
- LIST( U32 _size, const T* data ) {
+ LIST( U32 _size, const T* _data ) {
data = (T*)malloc( sizeof( T ) * _size );
- memcpy( data, data, _size * sizeof( T ) );
+ memcpy( data, _data, _size * sizeof( T ) );
size = _size;
capacity = _size;
}