Raised This Month: $ Target: $400
 0% 

DETOUR_DECL_MEMBER crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 11-02-2013 , 06:46   DETOUR_DECL_MEMBER crash
Reply With Quote #1

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?
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode