From de695f22bc854d104ee440f8d83598c113918a9e Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 19 May 2019 03:53:16 +0000 Subject: [PATCH] Better VM_DummySprite() git-svn-id: https://svn.eduke32.com/eduke32@7634 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gameexec.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index 72eb7eb3c..934ecb37c 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -143,12 +143,11 @@ static FORCE_INLINE int32_t VM_EventCommon__(int const &eventNum, int const &spr return returnValue; } #else -// do not inline -static void VM_DummySprite(void) -{ - static uspritetype dummy_sprite; - static actor_t dummy_actor; +static uspritetype dummy_sprite; +static actor_t dummy_actor; +static inline void VM_DummySprite(void) +{ vm.pUSprite = &dummy_sprite; vm.pActor = &dummy_actor; vm.pData = &dummy_actor.t_data[0];