Skip to content

Commit 6b69c2b

Browse files
author
Gin
committed
m
1 parent ed4ce95 commit 6b69c2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SerialPrograms/Source/PokemonLA/Options/PokemonLA_TravelLocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WildTravelLocationOption::WildTravelLocationOption()
2121
)
2222
{}
2323

24-
WildTravelLocationOption::operator TravelLocation() const{
24+
WildTravelLocationOption::operator const TravelLocation&() const{
2525
size_t index = this->current_value();
2626
return TravelLocations::instance()[index];
2727
}
@@ -36,7 +36,7 @@ AllTravelLocationOption::AllTravelLocationOption()
3636
)
3737
{}
3838

39-
AllTravelLocationOption::operator TravelLocation() const{
39+
AllTravelLocationOption::operator const TravelLocation&() const{
4040
size_t index = this->current_value();
4141
return TravelLocations::instance()[index];
4242
}

SerialPrograms/Source/PokemonLA/Options/PokemonLA_TravelLocation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ namespace PokemonLA{
1919
class WildTravelLocationOption : public IntegerEnumDropdownOption{
2020
public:
2121
WildTravelLocationOption();
22-
operator TravelLocation() const;
22+
operator const TravelLocation&() const;
2323
};
2424

2525
// All locations in WildTravelLocationOption + Jubilife village warp points
2626
class AllTravelLocationOption : public IntegerEnumDropdownOption{
2727
public:
2828
AllTravelLocationOption();
29-
operator TravelLocation() const;
29+
operator const TravelLocation&() const;
3030
};
3131

3232

0 commit comments

Comments
 (0)