Correct Thick Club overflow fix
Would, similarly as previous commit, cap incorrectly.
This commit is contained in:
@@ -89,6 +89,7 @@ Some fixes are mentioned as breaking compatibility with link battles. This can b
|
|||||||
+ ld a, HIGH(MAX_STAT_VALUE)
|
+ ld a, HIGH(MAX_STAT_VALUE)
|
||||||
+ cp h
|
+ cp h
|
||||||
+ jr c, .cap
|
+ jr c, .cap
|
||||||
|
+ ret nz
|
||||||
+ ld a, LOW(MAX_STAT_VALUE)
|
+ ld a, LOW(MAX_STAT_VALUE)
|
||||||
+ cp l
|
+ cp l
|
||||||
+ ret nc
|
+ ret nc
|
||||||
|
Reference in New Issue
Block a user