Fix warning at client start

This commit is contained in:
def 2014-10-27 09:05:22 +01:00
parent 0ac9002a80
commit 5fd50e0b46

View file

@ -2402,8 +2402,7 @@ void CClient::VersionUpdate()
void CClient::RegisterInterfaces() void CClient::RegisterInterfaces()
{ {
for(int i = 0; i < RECORDER_MAX; i++) Kernel()->RegisterInterface(static_cast<IDemoRecorder*>(&m_DemoRecorder[RECORDER_MANUAL]));
Kernel()->RegisterInterface(static_cast<IDemoRecorder*>(&m_DemoRecorder[i]));
Kernel()->RegisterInterface(static_cast<IDemoPlayer*>(&m_DemoPlayer)); Kernel()->RegisterInterface(static_cast<IDemoPlayer*>(&m_DemoPlayer));
Kernel()->RegisterInterface(static_cast<IServerBrowser*>(&m_ServerBrowser)); Kernel()->RegisterInterface(static_cast<IServerBrowser*>(&m_ServerBrowser));
#if !defined(CONF_PLATFORM_MACOSX) && !defined(__ANDROID__) #if !defined(CONF_PLATFORM_MACOSX) && !defined(__ANDROID__)