diff --git a/src/modules/filesystem/physfs/wrap_Filesystem.cpp b/src/modules/filesystem/physfs/wrap_Filesystem.cpp index aac95c5b3..a04882663 100644 --- a/src/modules/filesystem/physfs/wrap_Filesystem.cpp +++ b/src/modules/filesystem/physfs/wrap_Filesystem.cpp @@ -302,7 +302,10 @@ namespace physfs } } else + { instance->retain(); + love::luax_register_searcher(L, loader); + } WrappedModule w; w.module = instance;