Can't access a siblings protected members?

This commit is contained in:
Learath 2019-04-28 20:34:34 +03:00
parent 2975d6998d
commit 6a1ef1af62
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ bool CBinds::CBindsSpecial::OnInput(IInput::CEvent Event)
// only handle F and composed F binds
if((Event.m_Key >= KEY_F1 && Event.m_Key <= KEY_F12) || (Event.m_Key >= KEY_F13 && Event.m_Key <= KEY_F24))
{
int Mask = m_pBinds->GetModifierMask(m_pBinds->Input());
int Mask = m_pBinds->GetModifierMask(Input());
bool ret = false;
for(int Mod = 0; Mod < MODIFIER_COUNT; Mod++)

View file

@ -171,6 +171,7 @@ void CGameClient::OnConsoleInit()
m_All.Add(m_pEffects); // doesn't render anything, just updates effects
m_All.Add(m_pParticles);
m_All.Add(m_pBinds);
m_All.Add(&m_pBinds->m_SpecialBinds);
m_All.Add(m_pControls);
m_All.Add(m_pCamera);
m_All.Add(m_pSounds);