File tree Expand file tree Collapse file tree
SerialPrograms/Source/PokemonFRLG/Programs/RngManipulation Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments