From ebcf549ad493ebd3b2ab779be9b8f0e5558da073 Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 27 May 2012 13:39:19 +0300 Subject: [PATCH] can't offer in room without DivineMaster --- src/game/commands/Offer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/commands/Offer.cpp b/src/game/commands/Offer.cpp index e704389..bea79a8 100644 --- a/src/game/commands/Offer.cpp +++ b/src/game/commands/Offer.cpp @@ -6,6 +6,8 @@ COMMAND(Offer) { ADD_MESSAGE("You have nothing to offer!"); return false; } + int master = Square->GetDivineMaster(); + if (!master) { ADD_MESSAGE("Somehow you feel that no god will hear you here."); return; } item *Item = Char->GetStack()->DrawContents(Char, CONST_S("What do you want to offer?")); if (Item) { if (game::GetGod(Square->GetDivineMaster())->ReceiveOffer(Item)) { -- 2.11.4.GIT