Skip to content
Snippets Groups Projects
Commit 7527f238 authored by bunnei's avatar bunnei
Browse files

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

Added 'this' reference to num_instructions field so it's properly updated
parents 6448c2f3 0be75c13
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ public: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment