Skip to content

Commit 4940029

Browse files
committed
Fix Windows build.
1 parent 27f7570 commit 4940029

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

SerialPrograms/Source/PokemonSV/Programs/FormHunting/PokemonSV_ThreeSegmentDudunsparceFinder.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ ThreeSegmentDudunsparceFinder::ThreeSegmentDudunsparceFinder()
7575
PA_ADD_OPTION(NOTIFICATIONS);
7676
}
7777

78-
void ThreeSegmentDudunsparceFinder::check_one_column(SingleSwitchProgramEnvironment& env, ProControllerContext& context, int column_index){
78+
void ThreeSegmentDudunsparceFinder::check_one_column(
79+
SingleSwitchProgramEnvironment& env,
80+
ProControllerContext& context,
81+
uint8_t column_index
82+
){
7983
enter_box_system_from_overworld(env.program_info(), env.console, context);
8084
const uint8_t expected_empty_slots_in_party = HAS_CLONE_RIDE_POKEMON ? 4 : 5;
8185
if (check_empty_slots_in_party(env.program_info(), env.console, context) != expected_empty_slots_in_party){
@@ -183,7 +187,7 @@ void ThreeSegmentDudunsparceFinder::program(SingleSwitchProgramEnvironment& env,
183187
pbf_press_button(context, BUTTON_L, 10, 100);
184188

185189
try{
186-
for(int i = 0; i < 6; i++){
190+
for(uint8_t i = 0; i < 6; i++){
187191
check_one_column(env, context, i);
188192
break; // XXX
189193
}

SerialPrograms/Source/PokemonSV/Programs/FormHunting/PokemonSV_ThreeSegmentDudunsparceFinder.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ class ThreeSegmentDudunsparceFinder : public SingleSwitchProgramInstance{
3434
virtual void program(SingleSwitchProgramEnvironment& env, ProControllerContext& context) override;
3535

3636
private:
37-
void check_one_column(SingleSwitchProgramEnvironment& env, ProControllerContext& context, int column_index);
37+
void check_one_column(
38+
SingleSwitchProgramEnvironment& env,
39+
ProControllerContext& context,
40+
uint8_t column_index
41+
);
3842

3943
private:
4044
GoHomeWhenDoneOption GO_HOME_WHEN_DONE;

0 commit comments

Comments
 (0)