From 1bc6bad5bea817eeabbdb33df8aff41ae1b1b3b4 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 1 Apr 2024 14:56:08 -0400 Subject: [PATCH] Reroutine physics callbacks to casts to Entity objects --- Nuake/src/Scene/Systems/ScriptingSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nuake/src/Scene/Systems/ScriptingSystem.cpp b/Nuake/src/Scene/Systems/ScriptingSystem.cpp index 786dcd72..ad9aa71a 100644 --- a/Nuake/src/Scene/Systems/ScriptingSystem.cpp +++ b/Nuake/src/Scene/Systems/ScriptingSystem.cpp @@ -183,7 +183,7 @@ namespace Nuake if (entity1.IsValid() && scriptingEngineNet.HasEntityScriptInstance(entity1)) { auto scriptInstance = scriptingEngineNet.GetEntityScript(entity1); - scriptInstance.InvokeMethod("OnCollision", (int)col.Entity1, (int)col.Entity2); + scriptInstance.InvokeMethod("OnCollisionInternal", (int)col.Entity1, (int)col.Entity2); } } }