Skip to content

Commit

Permalink
fixup! Throw error when executing command past script code.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Jan 12, 2025
1 parent 8e3ecef commit 8d91f28
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/CCustomOpcodeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ namespace CLEO
if (thread->IsCustom() && !IsLegacyScript(thread))
{
auto cs = (CCustomScript*)thread;
auto end = (cs->GetBasePointer() + cs->GetCodeSize());
if ((BYTE*)lastOpcodePtr == (cs->GetBasePointer() + cs->GetCodeSize()))
{
SHOW_ERROR("Code execution past script end in script %s\nThis usually happens when [004E] command is missing.\nScript suspended.\n\nTo ignore this error, change the file extension from .cs to .cs4 and restart the game.", ((CCustomScript*)thread)->GetInfoStr().c_str());
Expand Down

0 comments on commit 8d91f28

Please sign in to comment.