File diff r25654:e264fd698eb2 → r25655:1030dcb7eb52
src/script/api/script_order.cpp
Show inline comments
 
@@ -564,7 +564,7 @@ static void _DoCommandReturnSetOrderFlag
 
	/* Make sure we don't go into an infinite loop */
 
	int retry = ScriptObject::GetCallbackVariable(3) - 1;
 
	if (retry < 0) {
 
		DEBUG(script, 0, "Possible infinite loop in SetOrderFlags() detected");
 
		Debug(script, 0, "Possible infinite loop in SetOrderFlags() detected");
 
		return false;
 
	}
 
	ScriptObject::SetCallbackVariable(3, retry);