You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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());