From 00e7190e29c0368abb7ef172a73f524d975ed7c9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 5 Apr 2019 22:56:34 -0400 Subject: [PATCH] video_core/macro_interpreter: Remove assertion within FetchParameter() We can just use .at(), which essentially does the same thing, but with less code. --- src/video_core/macro_interpreter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_core/macro_interpreter.cpp b/src/video_core/macro_interpreter.cpp index 4c4e8d603a..524d9ea5a9 100644 --- a/src/video_core/macro_interpreter.cpp +++ b/src/video_core/macro_interpreter.cpp @@ -223,8 +223,7 @@ void MacroInterpreter::ProcessResult(ResultOperation operation, u32 reg, u32 res } u32 MacroInterpreter::FetchParameter() { - ASSERT(next_parameter_index < parameters.size()); - return parameters[next_parameter_index++]; + return parameters.at(next_parameter_index++); } u32 MacroInterpreter::GetRegister(u32 register_id) const {