mirror of
				https://github.com/thornAvery/kep-hack.git
				synced 2025-11-04 20:51:02 +13:00 
			
		
		
		
	Fixed TM moves crashing when used subsequently
This commit is contained in:
		
							parent
							
								
									246fca413c
								
							
						
					
					
						commit
						ebd9b99357
					
				| 
						 | 
				
			
			@ -29,6 +29,14 @@ GetItemName::
 | 
			
		|||
;     starting at wcd6d
 | 
			
		||||
	push hl
 | 
			
		||||
	push bc
 | 
			
		||||
	
 | 
			
		||||
	;If you are going to make GetName check for wNameListType=ITEM_NAME, 
 | 
			
		||||
	;then you have to make sure wNameListType get the proper value here. 
 | 
			
		||||
	;Otherwise the game can crash when trying to learn TMHM items one after the other.
 | 
			
		||||
	;Specifically if only TMHM items are in the current list view. - jojo
 | 
			
		||||
	ld a, ITEM_NAME
 | 
			
		||||
	ld [wNameListType], a
 | 
			
		||||
	
 | 
			
		||||
	ld a, [wd11e]
 | 
			
		||||
	cp HM01 ; is this a TM/HM?
 | 
			
		||||
	jr nc, .Machine
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue