mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	Fix Cheat Mod Menu (#219)
Each cheat did not work as labelled. The checkbox for the second cheat listed activated the first cheat listed, and the third checkbox did the second cheat, and so on. The "- 1" in Line 353 did not need to be there.
This commit is contained in:
		
							parent
							
								
									73428e4d88
								
							
						
					
					
						commit
						32ec0199d8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -349,7 +349,7 @@ end
 | 
			
		|||
--- @param value boolean
 | 
			
		||||
local function update_cheat(index, value)
 | 
			
		||||
    for i, cheat in ipairs(sCheats) do
 | 
			
		||||
        if i - 1 == index then
 | 
			
		||||
        if i == index then
 | 
			
		||||
            gPlayerSyncTable[0][cheat.codename] = value
 | 
			
		||||
        end
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue