3
0
Fork 0
forked from suyu/suyu

Merge pull request #12 from Disruption/stomas/bugfix/wrong-field-reference

Added 'this' reference to num_instructions field so it's properly updated
This commit is contained in:
bunnei 2014-06-01 15:25:35 -04:00
commit 7527f238a1

View file

@ -25,7 +25,7 @@ public:
*/ */
void Run(int num_instructions) { void Run(int num_instructions) {
ExecuteInstructions(num_instructions); ExecuteInstructions(num_instructions);
num_instructions += num_instructions; this->num_instructions += num_instructions;
} }
/// Step CPU by one instruction /// Step CPU by one instruction