aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_shop.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_shop.go')
-rw-r--r--internal/game/cmd_shop.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/cmd_shop.go b/internal/game/cmd_shop.go
index ca1bf53..7299ad3 100644
--- a/internal/game/cmd_shop.go
+++ b/internal/game/cmd_shop.go
@@ -351,7 +351,7 @@ func (g *Game) doShopSell(sess *net.Session, mob *world.MobInstance, input strin
}
p.RemoveItem(match.ID, actualQty)
- p.Credits += total
+ g.grantCredits(p, total)
g.MobStore.ShopAdd(mob.InstanceID, match.ID, actualQty)
g.saveCharacter(p)