Skip to content

Commit

Permalink
Fix removal from collection sql statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Apr 20, 2020
1 parent ba1e888 commit e1818fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Beatmap/src/MapDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ class MapDatabase_Impl

if (!result) //Failed to add, try to remove
{
m_database.Exec(Utility::Sprintf("DELETE FROM collections WHERE mapid==%d AND collection==\"%s\"", mapid, name));
m_database.Exec(Utility::Sprintf("DELETE FROM collections WHERE folderid==%d AND collection==\"%s\"", mapid, name));
}
}

Expand Down Expand Up @@ -878,7 +878,7 @@ class MapDatabase_Impl
void m_CreateTables()
{
m_database.Exec("DROP TABLE IF EXISTS Folders");
m_database.Exec("DROP TABLE IF EXISTS Difficulties");
m_database.Exec("DROP TABLE IF EXISTS Charts");
m_database.Exec("DROP TABLE IF EXISTS Scores");
m_database.Exec("DROP TABLE IF EXISTS Collections");

Expand Down

0 comments on commit e1818fe

Please sign in to comment.