Fix crash when registering replacement resource functions

This commit is contained in:
Alexander Bock
2024-01-18 14:11:04 +01:00
parent 232a0e016d
commit 0e78e65175

View File

@@ -577,7 +577,7 @@ void AssetManager::setUpAssetLuaTable(Asset* asset) {
return 1;
},
2
1
);
lua_setfield(*_luaState, assetTableIndex, "localResource");