Skip to content

Commit 95f16ac

Browse files
committed
fix(GameEvent): add forward declaration for OnScriptLoaded
ScanLoadedScripts (line 270) calls OnScriptLoaded which is defined later (line 537). Add a forward declaration to fix the compilation error.
1 parent 357ca5e commit 95f16ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/BML_GameEvent/src/EventMod.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ static bool IsScriptBehavior(CKObject *object) {
267267

268268
namespace BML_GameEvent {
269269

270+
static void OnScriptLoaded(const char *filename, CKBehavior *script);
271+
270272
static int ScanLoadedScripts(CKContext *ctx) {
271273
if (!ctx || !s_Services) {
272274
return 0;

0 commit comments

Comments
 (0)