DNDLoot works now, just had to fix a problem with the constructor.

This commit is contained in:
Zed A. Shaw 2025-06-13 10:46:05 -04:00
parent 82ee8f68f7
commit 9468990f76
4 changed files with 9 additions and 12 deletions

View file

@ -1,11 +1,10 @@
#define FSM_DEBUG 1
#include "gui/guecstra.hpp"
#include "gui/dnd_loot.hpp"
#include "gui/uisystems.hpp"
namespace gui {
DNDLoot::DNDLoot(StatusUI status_ui, LootUI loot_ui, sf::RenderWindow &window, routing::Router& router) :
DNDLoot::DNDLoot(StatusUI& status_ui, LootUI& loot_ui, sf::RenderWindow &window, routing::Router& router) :
$status_ui(status_ui),
$loot_ui(loot_ui),
$window(window),
@ -24,7 +23,7 @@ namespace gui {
dbc::log(fmt::format("event received with data but state={} is not handled", int($state)));
}
return in_state(DNDState::END);
return !in_state(DNDState::END);
}
void DNDLoot::START(Event ev) {