From a93342df85331d505b551898a367c4c3e53fc0a9 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 5 Jan 2023 20:56:04 +1100 Subject: [PATCH] - Duke: Only store one `VMValue` member on the stack in `CallInitialize()`. --- source/games/duke/src/game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/game.cpp b/source/games/duke/src/game.cpp index 5bccfa7ed..05dd9d2a2 100644 --- a/source/games/duke/src/game.cpp +++ b/source/games/duke/src/game.cpp @@ -427,8 +427,8 @@ void CallInitialize(DDukeActor* actor) { IFVIRTUALPTR(actor, DDukeActor, Initialize) { - VMValue val[2] = { actor }; - VMCall(func, val, 1, nullptr, 0); + VMValue val = actor; + VMCall(func, &val, 1, nullptr, 0); } }