summaryrefslogtreecommitdiff
path: root/src/d/d_shop_system.cpp
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2026-03-18 01:38:05 -0400
committerGitHub <noreply@github.com>2026-03-17 22:38:05 -0700
commit6694c1b281a142972fce587bd20cd82ee65ab38f (patch)
tree2537d09d5ab3d270eaca5143a4f2f2f65f4ecb49 /src/d/d_shop_system.cpp
parent9f340b604b5ac3d19d330b7bd6a2d7355c58bc27 (diff)
Fix a bunch of compiler warnings and document several more bugs (#3130)
Diffstat (limited to 'src/d/d_shop_system.cpp')
-rw-r--r--src/d/d_shop_system.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/d_shop_system.cpp b/src/d/d_shop_system.cpp
index 1c955f0076..52941ebd0c 100644
--- a/src/d/d_shop_system.cpp
+++ b/src/d/d_shop_system.cpp
@@ -1459,9 +1459,8 @@ bool dShopSystem_c::searchItemActor() {
for (int i = 0; i < dShopSystem_sellItemMax; i++) {
u32 processId = dShopSystem_itemActor[i]->getProcessID();
mItemCtrl.setItemIndex(i, processId);
- mItemCtrl.setMessageIndex(i, (u16)dShopSystem_itemActor[i]->home.angle.x != 0xFFFF ?
- (u16)dShopSystem_itemActor[i]->home.angle.x :
- -1);
+ int itemFlowId = dShopSystem_itemActor[i]->getFlowNodeNum();
+ mItemCtrl.setMessageIndex(i, itemFlowId);
if (processId + 0x10000 == 0xFFFF) {
onFlag(i);