From 2327f014a5740ed80c2f200f601c0d6427b962ce Mon Sep 17 00:00:00 2001 From: igor725 Date: Fri, 12 Jul 2024 19:08:00 +0300 Subject: [PATCH] Whoops --- src/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.c b/src/server.c index bfd6755..49ff85b 100644 --- a/src/server.c +++ b/src/server.c @@ -286,6 +286,7 @@ cs_bool Server_Init(void) { World *tmp = World_Create(wname); if(World_Load(tmp)) { World_WaitProcessFinish(tmp, WORLD_PROC_LOADING); + World_Lock(tmp, 0); if(World_HasError(tmp)) { EWorldExtra extra = WORLD_EXTRA_NOINFO; EWorldError code = World_PopError(tmp, &extra); @@ -330,6 +331,7 @@ cs_bool Server_Init(void) { tmp = World_Create(buffer); if(World_Load(tmp)) { World_WaitProcessFinish(tmp, WORLD_PROC_LOADING); + World_Lock(tmp, 0); if(World_HasError(tmp)) { EWorldExtra extra = WORLD_EXTRA_NOINFO; EWorldError code = World_PopError(tmp, &extra); @@ -457,6 +459,7 @@ INL static void UnloadAllWorlds(void) { if(!World_IsInMemory(world) && World_Save(world)) { World_WaitProcessFinish(world, WORLD_PROC_ALL); + World_Lock(tmp, 0); if(World_HasError(world)) { EWorldExtra extra = WORLD_EXTRA_NOINFO; EWorldError code = World_PopError(world, &extra);