From 711680d652a8db17c1b91428b6d6835f30dfb4fd Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 19 Nov 2014 17:44:13 -0800 Subject: Magically allow "break" within WITH_VAR --- src/char/int_party.cpp | 4 ++-- src/char/inter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/char') diff --git a/src/char/int_party.cpp b/src/char/int_party.cpp index 9a9dbd9..5000ff2 100644 --- a/src/char/int_party.cpp +++ b/src/char/int_party.cpp @@ -327,7 +327,7 @@ void mapif_party_created(Session *s, AccountId account_id, Option p_) { Packet_Fixed<0x3820> fixed_20; fixed_20.account_id = account_id; - if OPTION_IS_SOME(p, p_) + if OPTION_IS_SOME_NOLOOP(p, p_) { fixed_20.error = 0; fixed_20.party_id = p.party_id; @@ -524,7 +524,7 @@ static void mapif_parse_PartyInfo(Session *s, PartyId party_id) { Option> maybe_party_most = party_db.search(party_id); - if OPTION_IS_SOME(party_most, maybe_party_most) + if OPTION_IS_SOME_NOLOOP(party_most, maybe_party_most) mapif_party_info(s, PartyPair{party_id, party_most}); else mapif_party_noinfo(s, party_id); diff --git a/src/char/inter.cpp b/src/char/inter.cpp index 03d027a..eccfc1b 100644 --- a/src/char/inter.cpp +++ b/src/char/inter.cpp @@ -270,7 +270,7 @@ void mapif_account_reg_reply(Session *s, AccountId account_id) Packet_Head<0x3804> head_04; head_04.account_id = account_id; std::vector> repeat_04; - if OPTION_IS_SOME(reg, reg_) + if OPTION_IS_SOME_NOLOOP(reg, reg_) { repeat_04.resize(reg->reg_num); assert (reg->reg_num < ACCOUNT_REG_NUM); -- cgit v1.2.3-70-g09d2