Can't swap items in loot_ui #58

Closed
opened 2 days ago by zedshaw · 1 comments
zedshaw commented 2 days ago
Owner

Got a crash swapping items in loot_ui

Got a crash swapping items in loot_ui
zedshaw self-assigned this 2 days ago
Poster
Owner
LootUI remove slot inv::Model id=18 slot=item_0
[../inventory.cpp:37|void inventory::Model::remove(DinkyECS::Entity)] removing entity 2 and slot item_0
> Grabsource Set sprite entity 3
LootUI target=18 placing world entity 7 in slot id 2
container 18 already has SLOT item_1, skip
terminate called after throwing an instance of 'std::out_of_range'
  what():  unordered_map::at
make: *** [Makefile:42: run] Error -1073740791
``` LootUI remove slot inv::Model id=18 slot=item_0 [../inventory.cpp:37|void inventory::Model::remove(DinkyECS::Entity)] removing entity 2 and slot item_0 > Grabsource Set sprite entity 3 LootUI target=18 placing world entity 7 in slot id 2 container 18 already has SLOT item_1, skip terminate called after throwing an instance of 'std::out_of_range' what(): unordered_map::at make: *** [Makefile:42: run] Error -1073740791 ```
zedshaw closed this issue 23 hours ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#58
Loading…
There is no content yet.