summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-06-01 21:25:35 +0200
committerbunnei <bunneidev@gmail.com>2014-06-01 21:25:35 +0200
commit7527f238a18e4dd2fd66a3a62dc1cd622a321a5c (patch)
tree43498de81a8b767ca8f1835472483a0d2b68bc3b
parentMerge pull request #9 from bunnei/master (diff)
parentAdded '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 (diff)
downloadyuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar.gz
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar.bz2
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar.lz
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar.xz
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.tar.zst
yuzu-7527f238a18e4dd2fd66a3a62dc1cd622a321a5c.zip
-rw-r--r--src/core/arm/arm_interface.h2
1 files changed, 1 insertions, 1 deletions
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