mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-11-29 11:24:19 +01:00
Fix failing to load as VSP is GameDLL iface version >= 10.
This commit is contained in:
parent
c06dc2dfed
commit
e29ff511ff
@ -90,10 +90,10 @@ public:
|
||||
|
||||
pGlobals = playerInfoManager->GetGlobalVars();
|
||||
|
||||
char gamedll_iface[] = "ServerGameDLL000";
|
||||
char gamedll_iface[24];
|
||||
for (unsigned int i = 3; i <= 50; i++)
|
||||
{
|
||||
gamedll_iface[15] = '0' + i;
|
||||
UTIL_Format(gamedll_iface, sizeof(gamedll_iface), "ServerGameDLL%03d", i);
|
||||
if ((server = (IServerGameDLL *)info->gsFactory(gamedll_iface, NULL)) != NULL)
|
||||
{
|
||||
g_Metamod.SetGameDLLInfo((CreateInterfaceFn)info->gsFactory, i, false);
|
||||
|
Loading…
Reference in New Issue
Block a user