From 0be75c13ee05c43ac4afb702346cc4083e8d2df6 Mon Sep 17 00:00:00 2001
From: Disruption <stomasortiz@gmail.com>
Date: Sun, 1 Jun 2014 21:08:26 +0200
Subject: [PATCH] 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 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