Skip to content

Commit d3eef68

Browse files
committed
Engine: Use TargetScriptMap in declarations
1 parent 18f772c commit d3eef68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/internal/engine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class Engine : public IEngine
163163
std::unordered_map<std::string, std::vector<Script *>> m_whenKeyPressedScripts; // key name, "when key pressed" scripts
164164
std::vector<std::string> m_extensions;
165165
std::vector<Target *> m_executableTargets; // sorted by layer (reverse order of execution)
166-
std::unordered_map<Target *, std::vector<std::shared_ptr<VirtualMachine>>> m_runningScripts;
167-
std::unordered_map<Target *, std::vector<std::shared_ptr<VirtualMachine>>> m_newScripts;
166+
TargetScriptMap m_runningScripts;
167+
TargetScriptMap m_newScripts;
168168
std::vector<VirtualMachine *> m_scriptsToRemove;
169169
std::unordered_map<std::shared_ptr<Block>, std::shared_ptr<Script>> m_scripts;
170170
std::vector<BlockFunc> m_functions;

0 commit comments

Comments
 (0)