Skip to content

Commit

Permalink
copy vtable
Browse files Browse the repository at this point in the history
  • Loading branch information
metal-crow committed Jun 9, 2024
1 parent 4b2e051 commit a1bada8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OverhaulDLL/include/BulletManStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ typedef struct ChrExFollowCam ChrExFollowCam;

struct BulletIns_FollowupBullet
{
uint64_t padding_vtable;
uint64_t vtable;
uint64_t FXManager; //const ptr
uint64_t FXEntry_Substruct_a; //const ptr to existing object
BulletIns_FollowupBullet* next;
Expand Down
1 change: 1 addition & 0 deletions OverhaulDLL/src/BulletManStructFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ std::string print_BulletIns_FollowupBullet(BulletIns_FollowupBullet* to)
//This is because otherwise we may allocate a new bullet struct for the next ptr, but the correct answer is to point to an already existing bullet struct
void copy_BulletIns_FollowupBullet_Data(BulletIns_FollowupBullet* to, BulletIns_FollowupBullet* from, bool to_game)
{
to->vtable = from->vtable;
//This is just a const ptr to the FXManager in the SfxMan global
to->FXManager = from->FXManager;
//Similar to above for these
Expand Down

0 comments on commit a1bada8

Please sign in to comment.