Skip to content

Commit 3607bdc

Browse files
committed
xrGame/GamePersistent.cpp: dedicated server crash fix
xrNetServer/ip_filter.cpp: replaced size() == 0 with empty()
1 parent da41e6e commit 3607bdc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/xrGame/GamePersistent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ CGamePersistent::~CGamePersistent(void)
159159

160160
void CGamePersistent::PreStart(LPCSTR op)
161161
{
162-
pApp->SetLoadingScreen(new UILoadingScreen());
162+
if (!GEnv.isDedicatedServer)
163+
pApp->SetLoadingScreen(new UILoadingScreen());
163164
inherited::PreStart(op);
164165
}
165166

src/xrNetServer/ip_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ u32 ip_filter::load()
8484

8585
bool ip_filter::is_ip_present(u32 ip_address)
8686
{
87-
if (m_all_subnets.size() == 0)
87+
if (m_all_subnets.empty())
8888
return true;
8989
subnet_item tmp_fake_item;
9090
hton_bo(ip_address, tmp_fake_item);

0 commit comments

Comments
 (0)