From 3c4acbb046196f2ee05c2d8f1a7eef1740f1276b Mon Sep 17 00:00:00 2001 From: s1lentq Date: Fri, 10 May 2024 17:42:05 +0700 Subject: [PATCH] Fix warning --- rehlds/engine/sv_upld.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rehlds/engine/sv_upld.cpp b/rehlds/engine/sv_upld.cpp index 425e439..eced090 100644 --- a/rehlds/engine/sv_upld.cpp +++ b/rehlds/engine/sv_upld.cpp @@ -207,14 +207,13 @@ void SV_Customization(client_t *pPlayer, resource_t *pResource, qboolean bSkipPl // Creates customizations list for the current player and sends resources to other players. void SV_RegisterResources(void) { - resource_t *pResource; client_t *pHost = host_client; pHost->uploading = FALSE; #ifdef REHLDS_FIXES SV_CreateCustomizationList(pHost); // FIXED: Call this function only once. It was crazy to call it for each resource available. #else // REHLDS_FIXES - for (pResource = pHost->resourcesonhand.pNext; pResource != &pHost->resourcesonhand; pResource = pResource->pNext) + for (resource_t *pResource = pHost->resourcesonhand.pNext; pResource != &pHost->resourcesonhand; pResource = pResource->pNext) { SV_CreateCustomizationList(pHost); SV_Customization(pHost, pResource, TRUE);