Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions neverwinter/nwscript/native/scriptcompfinalcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7112,6 +7112,8 @@ void CScriptCompiler::EmitModifyStackPointer(int32_t nModifyBy)
return;
}
}
// Disabled for now, appears to cause infinite loops in some cases
#if 0
// The common loop pattern of `for (i = 0; i < 1000; ++i)` gets compiled into
// 10 CONSTANT, TYPE_INTEGER, 0
// 16 RUNSTACK_COPY, TYPE_VOID, -4, 4
Expand Down Expand Up @@ -7164,6 +7166,7 @@ void CScriptCompiler::EmitModifyStackPointer(int32_t nModifyBy)
}
}
}
#endif

}

Expand Down