Skip to content

Commit d764d17

Browse files
committed
refactor: use memory util
1 parent 968bd5f commit d764d17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Modules/Engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ bool Engine::Init() {
10831083

10841084
uintptr_t Init = s_EngineAPI->Original(Offsets::Init);
10851085
uintptr_t VideoMode_Create = Memory::Read(Init + Offsets::VideoMode_Create);
1086-
void **videomode = *(void ***)(VideoMode_Create + Offsets::videomode);
1086+
auto videomode = Memory::Deref<void **>(VideoMode_Create + Offsets::videomode);
10871087
Renderer::Init(videomode);
10881088
Stitcher::Init(videomode);
10891089

0 commit comments

Comments
 (0)