Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/base/StarAssets.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-04-12 16:53:22 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-04-12 16:53:22 +1000
commit97ba073681b75af10cd0eab827a6aa98b77ea627 (patch)
treecc2a99a33822b08842060474b890672c20798300 /source/base/StarAssets.hpp
parentc6507aafab4ac86845b53b4b5e8dd4366a6571a5 (diff)
Fix multiple Lua patches of the same path not working correctly
Diffstat (limited to 'source/base/StarAssets.hpp')
-rw-r--r--source/base/StarAssets.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/base/StarAssets.hpp b/source/base/StarAssets.hpp
index a8e4480..6cc8c16 100644
--- a/source/base/StarAssets.hpp
+++ b/source/base/StarAssets.hpp
@@ -331,7 +331,7 @@ private:
// Lua
RefPtr<RefCounter> m_luaEngine; // dumb but to avoid including Lua.hpp in here...
- mutable StringMap<LuaContextPtr> m_patchContexts;
+ mutable HashMap<pair<AssetSource*, String>, LuaContextPtr> m_patchContexts;
mutable RecursiveMutex m_luaMutex;
// Paths of all used asset sources, in load order.