Add command result flag for whether SetResultData was called

Use for tracerestrict validation result fail offset
This commit is contained in:
Jonathan G Rennison
2023-05-30 23:29:53 +01:00
parent 5dcbd9271b
commit 13183d3f13
4 changed files with 10 additions and 2 deletions

View File

@@ -971,7 +971,7 @@ CommandCost TraceRestrictProgram::Validate(const std::vector<TraceRestrictItem>
auto validation_error = [i](StringID str) -> CommandCost {
CommandCost result(str);
result.SetResultData((1 << 31) | (uint)i);
result.SetResultData((uint)i);
return result;
};