aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-12-16 14:19:48 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-12-16 14:19:48 -0300
commit82c2dfb15d28412be85d3de6e691b20fcdb5eac6 (patch)
tree45d4f4bc122a4419dcb6ed37f0155b0cd01a6eb4
parent449585dace03bf6a1e3af26481643a36ac4dd2e0 (diff)
downloadgame-82c2dfb15d28412be85d3de6e691b20fcdb5eac6.tar.gz
game-82c2dfb15d28412be85d3de6e691b20fcdb5eac6.zip
missing return in CreateMoney (#48)
-rw-r--r--src/magic.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/magic.cc b/src/magic.cc
index 7c0e4f5..60be085 100644
--- a/src/magic.cc
+++ b/src/magic.cc
@@ -1796,6 +1796,7 @@ void CreateMoney(TCreature *Actor, const char *Param){
if(Amount < 1 || Amount > 1000000){
SendMessage(Actor->Connection, TALK_FAILURE_MESSAGE,
"You may only create 1 to 1,000,000 gold.");
+ return;
}
int Crystal = (Amount / 10000);