Skip to content

Commit ecdf63a

Browse files
committed
Fixed #9530 (Server crashed when using the 'upgrade' command)
1 parent a21031a commit ecdf63a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Server/mods/deathmatch/logic/CResourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ CResourceManager::~CResourceManager ( void )
6565
// Load the complete list of resources and create their objects
6666
// DOES NOT reload already loaded resources, we need a special function for lua for that (e.g. reloadResource)
6767
// Talidan: yes it did, noob. Not as of r897 - use bRefreshAll to do already loaded resources.
68-
bool CResourceManager::Refresh ( bool bRefreshAll, const SString& strJustThisResource, bool bShowTiming )
68+
bool CResourceManager::Refresh ( bool bRefreshAll, const SString strJustThisResource, bool bShowTiming )
6969
{
7070
CTimeUsMarker < 20 > marker;
7171
marker.Set( "Start" );

Server/mods/deathmatch/logic/CResourceManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CResourceManager
7676
std::list < CResource* > ::const_iterator IterBegin ( void ) { return m_resources.begin (); };
7777
std::list < CResource* > ::const_iterator IterEnd ( void ) { return m_resources.end (); };
7878

79-
bool Refresh ( bool bRefreshAll = false, const SString& strJustThisResource = "", bool bShowTiming = false );
79+
bool Refresh ( bool bRefreshAll = false, const SString strJustThisResource = "", bool bShowTiming = false );
8080
void UpgradeResources ( CResource* pResource = NULL );
8181
void CheckResources ( CResource* pResource = NULL );
8282
inline unsigned int GetResourceLoadedCount ( void ) { return m_uiResourceLoadedCount; }

0 commit comments

Comments
 (0)