Initialize allocated memory.

This commit is contained in:
Bartosz Taudul 2017-09-15 20:24:15 +02:00
parent b4faa0a9b9
commit 2947fb6563

View File

@ -42,7 +42,7 @@ public:
template<typename T>
T* Alloc()
{
return (T*)Alloc( sizeof( T ) );
return new( Alloc( sizeof( T ) ) ) T;
}
void Unalloc( size_t size )