From 2caa3ae57e748e55568ee3e7507fc5342495de8d Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Tue, 25 Jul 2023 14:24:50 +0200 Subject: [PATCH] Save and restore i_enginestudio --- src/globals.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/globals.c b/src/globals.c index 3463f99..8484155 100644 --- a/src/globals.c +++ b/src/globals.c @@ -67,9 +67,11 @@ bool globals_init(void) { void globals_store(void) { memcpy(&o_engine, i_engine, sizeof(cl_enginefunc_t)); memcpy(&o_client, i_client, sizeof(cl_clientfunc_t)); + memcpy(&o_enginestudio, i_enginestudio, sizeof(engine_studio_api_t)); } void globals_restore(void) { memcpy(i_engine, &o_engine, sizeof(cl_enginefunc_t)); memcpy(i_client, &o_client, sizeof(cl_clientfunc_t)); + memcpy(i_enginestudio, &o_enginestudio, sizeof(engine_studio_api_t)); }