Skip to content

Commit ccfa4eb

Browse files
committed
Merge branch 'coin-store' of https://github.com/zimbadev/crystalserver into coin-store
2 parents ecb2baa + 7882071 commit ccfa4eb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/lua/functions/creatures/player/player_functions.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3278,11 +3278,12 @@ int PlayerFunctions::luaPlayerRemoveTransferableAndTibiaCoins(lua_State* L) {
32783278
}
32793279

32803280
if (player->account->removeCoins(
3281-
enumToValue(CoinType::Transferable),
3282-
enumToValue(CoinType::Normal),
3283-
Lua::getNumber<uint32_t>(L, 2),
3284-
"REMOVE Coins"
3285-
) != enumToValue(AccountErrors_t::Ok)) {
3281+
enumToValue(CoinType::Transferable),
3282+
enumToValue(CoinType::Normal),
3283+
Lua::getNumber<uint32_t>(L, 2),
3284+
"REMOVE Coins"
3285+
)
3286+
!= enumToValue(AccountErrors_t::Ok)) {
32863287
Lua::reportErrorFunc("failed to remove transferable and regular coins");
32873288
lua_pushnil(L);
32883289
return 1;

0 commit comments

Comments
 (0)