Permalink
Browse files

Fix failing to load as VSP is GameDLL iface version >= 10.

  • Loading branch information...
psychonic committed Sep 10, 2015
1 parent c88af78 commit 05ae15c23c60a9b54b902cd18f07315a234e6a17
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/vsp_bridge.cpp
View
@@ -90,10 +90,10 @@ class VspBridge : public IVspBridge
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);

0 comments on commit 05ae15c

Please sign in to comment.