We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff9068c + c8100f2 commit ee67c2fCopy full SHA for ee67c2f
src/game/server/gamecontext.cpp
@@ -4712,7 +4712,12 @@ bool CGameContext::IsClientHighBandwidth(int ClientId) const
4712
}
4713
4714
CUuid CGameContext::GameUuid() const { return m_GameUuid; }
4715
-const char *CGameContext::GameType() const { return m_pController && m_pController->m_pGameType ? m_pController->m_pGameType : ""; }
+const char *CGameContext::GameType() const
4716
+{
4717
+ dbg_assert(m_pController, "no controller");
4718
+ dbg_assert(m_pController->m_pGameType, "no gametype");
4719
+ return m_pController->m_pGameType;
4720
+}
4721
const char *CGameContext::Version() const { return GAME_VERSION; }
4722
const char *CGameContext::NetVersion() const { return GAME_NETVERSION; }
4723
0 commit comments