mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-28 19:04:06 +00:00
Use sizeof(type) instead of sizeof(variableName) when (de)serializing data (#1505)
* Use sizeof(type) instead of sizeof(variableName) when (de)serializing data * Less usage of sizeof(variableName) while (de)serializing
This commit is contained in:
committed by
GitHub
parent
c9b41e2db8
commit
2915aa014f
@@ -38,7 +38,7 @@ MxResult LegoTexturePresenter::Read(MxDSChunk& p_chunk)
|
||||
m_textures = new LegoNamedTextureList();
|
||||
|
||||
LegoU32 numTextures, i;
|
||||
if (storage.Read(&numTextures, sizeof(numTextures)) != SUCCESS) {
|
||||
if (storage.Read(&numTextures, sizeof(LegoU32)) != SUCCESS) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ MxResult LegoTexturePresenter::Read(MxDSChunk& p_chunk)
|
||||
LegoTexture* texture;
|
||||
LegoNamedTexture* namedTexture;
|
||||
|
||||
if (storage.Read(&textureNameLength, sizeof(textureNameLength)) != SUCCESS) {
|
||||
if (storage.Read(&textureNameLength, sizeof(LegoU32)) != SUCCESS) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user