Skip to content

Commit

Permalink
Fixed favorites being able to be added multiple times.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 authored and jacob1 committed Apr 8, 2017
1 parent 804b33f commit bda17dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/game/Favorite.cpp
Expand Up @@ -25,7 +25,10 @@ bool Favorite::AnyFavorites()

void Favorite::AddFavorite(std::string identifier)
{
favoritesList.push_back(identifier);
if (!IsFavorite(identifier))
{
favoritesList.push_back(identifier);
}
}

void Favorite::RemoveFavorite(std::string identifier)
Expand Down

0 comments on commit bda17dd

Please sign in to comment.