From 0be75c13ee05c43ac4afb702346cc4083e8d2df6 Mon Sep 17 00:00:00 2001 From: Disruption Date: Sun, 1 Jun 2014 21:08:26 +0200 Subject: 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 --- src/core/arm/arm_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index b73786ccd..34a2eba1b 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 -- cgit v1.2.3