mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									6448c2f300
								
							
						
					
					
						commit
						0be75c13ee
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue