We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af03777 commit 3c8b34fCopy full SHA for 3c8b34f
1 file changed
src/engine/internal/engine.cpp
@@ -1070,7 +1070,9 @@ std::shared_ptr<IBlockSection> Engine::blockSection(const std::string &opcode) c
1070
1071
void Engine::addHatToMap(std::unordered_map<Target *, std::vector<Script *>> &map, Script *script)
1072
{
1073
- assert(script);
+ if (!script)
1074
+ return;
1075
+
1076
assert(script->target());
1077
Target *target = script->target();
1078
auto it = map.find(target);
0 commit comments