diff options
author | Jacek Antonelli | 2008-12-09 22:25:37 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-09 22:25:41 -0600 |
commit | 22b861982f2efd5d16097a012627e73b9fb85834 (patch) | |
tree | 6152a84b92c682e271bdd52d46cd1728454f679a /linden/indra/newview/llviewermessage.cpp | |
parent | Second Life viewer sources 1.22.1-RC (diff) | |
download | meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.zip meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.gz meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.bz2 meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.xz |
Second Life viewer sources 1.22.2-RC
Diffstat (limited to '')
-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)) |