clans.c, do_clan_withdraw() and do_clan_donate(), at the bottom
Code:
/* This example is do_clan_withdraw() */
clan->funds -= amount;
ch->gold += amount;
save_clan ( clan );
Change to:
Code:
clan->funds -= amount;
ch->gold += amount;
save_char_obj( ch );
save_clan ( clan );
Add save_char_obj to do_clan_donate as well in the same manner.
Money is deducted from clan and added to character. The clan is saved to disk, while the character is not. In case of a crash or similar, the money will simply vanish.
.........................
SWR2 Refactor - The improved SWR 2.0 codebase.