Skip to content

Commit 161ec16

Browse files
committed
Fix stopping index in for loop
1 parent f6a679e commit 161ec16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SerialPrograms/Source/PokemonSwSh/PkmnLib/PokemonSwSh_PkmnLib_Moves.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ uint8_t get_max_move_power(const Move& move){
160160
int found_idx = 0;
161161

162162
// quick iteration to find index where power is between these values
163-
for (int ii = 0; ii > 7; ii++)
163+
for (int ii = 0; ii < 7; ii++)
164164
{
165165
if (max_move_bounds[ii][0] <= move_power && move_power <= max_move_bounds[ii][1])
166166
{

0 commit comments

Comments
 (0)