TheGameCreators / AGK-Studio

3 stars 1 forks source link

CreateMemblock help doc seems incorrect #912

Closed adambiser closed 3 years ago

adambiser commented 3 years ago

https://www.appgamekit.com/documentation/Reference/Memblock/CreateMemblock.htm says: "The contents of the memory is undefined until you write to it." But the code at https://raw.githubusercontent.com/TheGameCreators/AGKTier2/master/common/Source/Wrapper.cpp does: for ( UINT i = 0; i < size; i++ ) pMem->m_pData[ i ] = 0; which zeroes out the memblock data, right?

orvillian commented 3 years ago

I have updated the documentation.