Fix wrong game event manager interface version

This commit is contained in:
Lauri Räsänen 2024-04-25 05:01:14 +03:00
parent f1fce4c95d
commit 9b22b72fd9

View file

@ -24,14 +24,15 @@ struct EngineInterfaces
{ {
} }
EngineInterfaces(CreateInterfaceFn engineFactory, CreateInterfaceFn serverFactory) EngineInterfaces(CreateInterfaceFn engineFactory, CreateInterfaceFn serverFactory) :
EngineInterfaces()
{ {
// Engine interfaces // Engine interfaces
cvar = (ICvar*)engineFactory(CVAR_QUERY_INTERFACE_VERSION, NULL); cvar = (ICvar*)engineFactory(CVAR_QUERY_INTERFACE_VERSION, NULL);
engineServer = (IVEngineServer*)engineFactory(INTERFACEVERSION_VENGINESERVER, NULL); engineServer = (IVEngineServer*)engineFactory(INTERFACEVERSION_VENGINESERVER, NULL);
engineTrace = (IEngineTrace*)engineFactory(INTERFACEVERSION_ENGINETRACE_SERVER, NULL); engineTrace = (IEngineTrace*)engineFactory(INTERFACEVERSION_ENGINETRACE_SERVER, NULL);
gameEventManager = gameEventManager =
(IGameEventManager2*)engineFactory(INTERFACEVERSION_GAMEEVENTSMANAGER, NULL); (IGameEventManager2*)engineFactory(INTERFACEVERSION_GAMEEVENTSMANAGER2, NULL);
serverPluginHelpers = serverPluginHelpers =
(IServerPluginHelpers*)engineFactory(INTERFACEVERSION_ISERVERPLUGINHELPERS, NULL); (IServerPluginHelpers*)engineFactory(INTERFACEVERSION_ISERVERPLUGINHELPERS, NULL);
uniformRandomStream = uniformRandomStream =