diff --git a/src/Loading.cpp b/src/Loading.cpp index bd6b33a..88a2332 100644 --- a/src/Loading.cpp +++ b/src/Loading.cpp @@ -34,6 +34,7 @@ void Internal::Load() { // Call all events after loading il2cpp auto events = onIl2CppLoaded; + if (events.IsEmpty()) return; auto current = events.lastElement->next; do { current->value(); @@ -488,4 +489,4 @@ void Loading::AddOnLoadedEvent(void (*event)()) { void Loading::ClearOnLoadedEvents() { Internal::onIl2CppLoaded.Clear(); -} \ No newline at end of file +}