Skip to content

Commit 2308310

Browse files
committed
fix mismatched int types
1 parent 4abd79d commit 2308310

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SerialPrograms/Source/PokemonFRLG/Programs/RngManipulation/PokemonFRLG_RngNavigation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ int auto_catch(
145145
const uint64_t& max_ball_throws,
146146
bool safari_zone
147147
){
148-
for (int i=0; i<=max_ball_throws; i++){
148+
for (uint64_t i=0; i<=max_ball_throws; i++){
149149
int count = 0;
150150
while(true){
151151
if (count >= 10){
@@ -183,10 +183,10 @@ int auto_catch(
183183
case 2:
184184
console.log("Dex registration detected. Exiting battle...");
185185
pbf_mash_button(context, BUTTON_B, 5000ms);
186-
return i;
186+
return static_cast<int>(i);
187187
case 3:
188188
console.log("Black screen detected. Battle exited.");
189-
return i;
189+
return static_cast<int>(i);
190190
default:
191191
console.log("No recognized state. Try checking if in the overworld...");
192192
StartMenuWatcher start_menu;

0 commit comments

Comments
 (0)