Accounts database fix

This commit is contained in:
Markolie
2015-09-22 01:38:41 +02:00
parent 25064ad0a4
commit dc70ec8e8b
+4
View File
@@ -175,6 +175,10 @@
if("finalise_create_account")
var/account_name = href_list["holder_name"]
var/starting_funds = max(text2num(href_list["starting_funds"]), 0)
starting_funds = Clamp(starting_funds, 0, station_account.money) // Not authorized to put the station in debt.
starting_funds = min(starting_funds, fund_cap) // Not authorized to give more than the fund cap.
create_account(account_name, starting_funds, src)
if(starting_funds > 0)
//subtract the money