mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
Fixed favorites being able to be added multiple times.
This commit is contained in:
@@ -25,7 +25,10 @@ bool Favorite::AnyFavorites()
|
|||||||
|
|
||||||
void Favorite::AddFavorite(std::string identifier)
|
void Favorite::AddFavorite(std::string identifier)
|
||||||
{
|
{
|
||||||
favoritesList.push_back(identifier);
|
if (!IsFavorite(identifier))
|
||||||
|
{
|
||||||
|
favoritesList.push_back(identifier);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Favorite::RemoveFavorite(std::string identifier)
|
void Favorite::RemoveFavorite(std::string identifier)
|
||||||
|
Reference in New Issue
Block a user