diff options
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 30e5e26..63bc9c7 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -203,7 +203,7 @@ struct LLFriendshipOffer | |||
203 | void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group, | 203 | void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group, |
204 | S32 trx_type, const std::string& desc) | 204 | S32 trx_type, const std::string& desc) |
205 | { | 205 | { |
206 | if(0 == amount) return; | 206 | if(0 == amount || !region) return; |
207 | amount = abs(amount); | 207 | amount = abs(amount); |
208 | LL_INFOS("Messaging") << "give_money(" << uuid << "," << amount << ")"<< LL_ENDL; | 208 | LL_INFOS("Messaging") << "give_money(" << uuid << "," << amount << ")"<< LL_ENDL; |
209 | if(can_afford_transaction(amount)) | 209 | if(can_afford_transaction(amount)) |