View Single Post
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-10-2018 , 13:24   [Linux] Virtual functions are null pointers
Reply With Quote #1

I'm creating support for linux of my module and retrieving virtual private functions by offsets returns 0. How i'm doing is shown here:

Code:
edict_t *Entity = CREATE_ENTITY(...);
CALL_GAME_ENTITY(...);
void **VTable = *(void ***)(Entity->pvPrivateData);
return VTable[Offset];
This perfectly working on windows but on linux not. any help?


EDIT:
I have compared edict entvars to privatedata and they matched
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 11-11-2018 at 07:34.
Ghosted is offline