Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Added 'this' reference to num_instructions field so it's properly updated,as before the method was affecting the local method parameter rather than the class field

Disruption0be75c13ee05
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index b73786ccd4..34a2eba1ba 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -25,7 +25,7 @@ public:
*/
void Run(int num_instructions) {
ExecuteInstructions(num_instructions);
- num_instructions += num_instructions;
+ this->num_instructions += num_instructions;
}
/// Step CPU by one instruction