From 82de1453ed437f474e07f4758c7a2bca52c5e80f Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 3 Mar 2024 15:11:48 -0500 Subject: [PATCH] Match --- LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp b/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp index d7f418a3..141ade39 100644 --- a/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp +++ b/LEGO1/lego/legoomni/src/entity/legoworldpresenter.cpp @@ -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; }