Skip to content

Commit 1c7c721

Browse files
authored
Fix refresh restarting resources (#4469)
refresh isn't meant to restart, just refreshall does that. (fix after #4409)
1 parent f864cf7 commit 1c7c721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/mods/deathmatch/logic/CResourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ bool CResourceManager::Refresh(bool bRefreshAll, const SString strJustThisResour
184184
// Add the resource
185185
Load(!info.bIsDir, info.strAbsPath, info.strName);
186186
}
187-
else if (pResource && pResource->HasResourceChanged())
187+
else if (bRefreshAll && pResource && pResource->HasResourceChanged())
188188
{
189189
if (g_pServerInterface->IsRequestingExit())
190190
return false;

0 commit comments

Comments
 (0)