This code works fine:
Code:
DETOUR_DECL_MEMBER2(CMapLoadHelperInit, void, model_t *, model, char *, mapname)
{
DETOUR_MEMBER_CALL(CMapLoadHelperInit)(model, mapname);
return;
}
This code is printed to the console "CMapLoadHelperInit1 de_dust" and causes a fatal error:
Code:
DETOUR_DECL_MEMBER2(CMapLoadHelperInit, void, model_t *, model, char *, mapname)
{
printf("CMapLoadHelperInit1 %s\n", mapname);
DETOUR_MEMBER_CALL(CMapLoadHelperInit)(model, mapname);
return;
}
Error: -pure virtual function call.
What's wrong with that code?