Fixed bug regarding having multiple sellable equips in your inventory and being able to sell multiple extra copies of them. Also fixed inventory not updating upon selling an item.

This commit is contained in:
2023-12-31 23:18:32 -06:00
parent 5a9396fbcb
commit fccf24c0c9
11 changed files with 23 additions and 22 deletions
+1
View File
@@ -182,6 +182,7 @@ void Menu::MenuSelect(Crawler*game){
}
void Menu::Update(Crawler*game){
if(buttons.count(selection.y)==0)selection={-1,-1};
if(selection.x<0||selection.x>=buttons[selection.y].size()){selection={-1,-1};}
if(draggingComponent==nullptr){