diff options
| author | aura <nw@moneybot.cc> | 2026-03-14 01:12:57 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-14 01:12:57 +0100 |
| commit | c3f29220eac1d1ed90f1262a55cd65c41d7a3b1e (patch) | |
| tree | 83c8fd4cafb65f476fcc27578fef2b5db8925a91 /src/util/allocator.h | |
| parent | 59ca7ecafca84fa62ee8d54d0e48521b7e4c0a95 (diff) | |
fix textures in 2d render, some bugfix
Diffstat (limited to 'src/util/allocator.h')
| -rw-r--r-- | src/util/allocator.h | 4 |
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; } |
