Game Development Community

MemStream bug

by Gerald Fishel · in Torque Game Engine Advanced · 05/25/2009 (4:50 am) · 1 replies

MemStream is supposed to be able to take a buffer as the second parameter, or NULL to indicate that the stream should create and own the buffer internally. But at the beginning of the constructor it will AssertFatal if io_pBuffer is NULL.

Just removing the first line in the constructor should fix it.

#1
05/25/2009 (6:40 am)

Indeed. MemStream had some changes in Torque 3D that also solved this problem, but in TGEA this is clearly a bug.

Merged the change into the TGEA 1.8.1 repo.