Skip to content

Commit e7cbe89

Browse files
committed
Fix map vote schema fields not being networked
1 parent e73902d commit e7cbe89

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/map_votes.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ void CMapVoteSystem::StartVote()
277277
for (int i = 0; i < 10; i++)
278278
{
279279
g_pGameRules->m_nEndMatchMapGroupVoteTypes[i] = -1;
280+
g_pGameRules->m_nEndMatchMapGroupVoteTypes.NetworkStateChanged();
281+
280282
g_pGameRules->m_nEndMatchMapGroupVoteOptions[i] = -1;
283+
g_pGameRules->m_nEndMatchMapGroupVoteOptions.NetworkStateChanged();
281284
}
282285

283286
return;
@@ -326,6 +329,9 @@ void CMapVoteSystem::StartVote()
326329
g_pGameRules->m_nEndMatchMapGroupVoteTypes[i] = -1;
327330
g_pGameRules->m_nEndMatchMapGroupVoteOptions[i] = -1;
328331
}
332+
333+
g_pGameRules->m_nEndMatchMapGroupVoteTypes.NetworkStateChanged();
334+
g_pGameRules->m_nEndMatchMapGroupVoteOptions.NetworkStateChanged();
329335
}
330336

331337
for (int i = 0; i < m_iVoteSize; i++)

0 commit comments

Comments
 (0)