This commit is contained in:
Christian Semmler 2024-03-03 15:11:48 -05:00
parent 6cb2c7d1ce
commit 82de1453ed

View File

@ -215,7 +215,7 @@ MxResult LegoWorldPresenter::LoadWorld(char* p_worldName, LegoWorld* p_world)
}
MxU8* buff = new MxU8[size];
if (fread(&buff, size, 1, wdbFile) != 1) {
if (fread(buff, size, 1, wdbFile) != 1) {
return FAILURE;
}
@ -236,7 +236,7 @@ MxResult LegoWorldPresenter::LoadWorld(char* p_worldName, LegoWorld* p_world)
}
buff = new MxU8[size];
if (fread(&buff, size, 1, wdbFile) != 1) {
if (fread(buff, size, 1, wdbFile) != 1) {
return FAILURE;
}