Thread: hey stefan...
View Single Post
Re: hey stefan...
Old
  (#19)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: hey stefan... - 05-06-2004

Hmm, one question though:

C_DLLEXPORT int
GetEntityAPI2_Post (DLL_FUNCTIONS
* pFunctionTable, int *interfaceVersion)
{
gFunctionTable_post.pfnSpawn = Spawn_Post;
// need to declare another gFunctionTable_post in the top of the dll.cpp file
memcpy (pFunctionTable, &gFunctionTable, sizeof (DLL_FUNCTIONS));
return (TRUE);
}



this code , which is from Whistler in the above post, it has in the last line:
memcpy (pFunctionTable, &gFunctionTable, sizeof (DLL_FUNCTIONS));


shouldnt it be:
memcpy (pFunctionTable, &gFunctionTable_post, sizeof (DLL_FUNCTIONS));

?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote