Skip to content

Commit cf48eb9

Browse files
committed
- Add missing VTableHeader for ContactListener
1 parent 85c6d82 commit cf48eb9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libs/JoltC/JoltPhysicsC.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,8 @@ typedef struct JPC_CharacterContactListenerVTable
985985

986986
typedef struct JPC_ContactListenerVTable
987987
{
988+
_JPC_VTABLE_HEADER;
989+
988990
// Optional, can be NULL.
989991
JPC_ValidateResult
990992
(*OnContactValidate)(void *in_self,

src/zphysics.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ pub const ContactListener = extern struct {
717717
}
718718

719719
pub const VTable = extern struct {
720+
__header: VTableHeader = .{},
720721
onContactValidate: ?*const fn (
721722
self: *ContactListener,
722723
body1: *const Body,

0 commit comments

Comments
 (0)