Skip to content

Commit 3c8b34f

Browse files
committed
Remove script assertion from Engine::addHatToMap()
1 parent af03777 commit 3c8b34f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/engine/internal/engine.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,9 @@ std::shared_ptr<IBlockSection> Engine::blockSection(const std::string &opcode) c
10701070

10711071
void Engine::addHatToMap(std::unordered_map<Target *, std::vector<Script *>> &map, Script *script)
10721072
{
1073-
assert(script);
1073+
if (!script)
1074+
return;
1075+
10741076
assert(script->target());
10751077
Target *target = script->target();
10761078
auto it = map.find(target);

0 commit comments

Comments
 (0)