1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Fixed loader responding to plugin api > 2.

This commit is contained in:
David Anderson 2008-11-16 03:47:58 -06:00
parent 05a178f338
commit ccf4ae53a8

View File

@ -244,6 +244,10 @@ void *mm_GetVspCallbacks(unsigned int version)
if (mm_vsp_callbacks.IsLoaded())
return NULL;
/* Only support versions 1 or 2 right now */
if (version > 2)
return NULL;
mm_vsp_callbacks.PrepForLoad(version);
return &mm_vsp_callbacks;