diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 5e627a6c3..b8aa16b87 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -4835,7 +4835,7 @@ BGFX_C_API bool bgfx_init(const bgfx_init_t* _init) } union { const bgfx_init_t* c; const bgfx::Init* cpp; } in; - in.c = _init; + in.c = &init; return bgfx::init(*in.cpp); }