
Pages:<< prev 1 next >>


Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Bug: Characters not saved in do_clan_withdraw/do_clan_donate
Danger: Medium - Could possibly be abused to drain or inflate a clans funds.
Found by: Caius
Fixed by: Kayle
---
clans.c, do_clan_withdraw
Find:
Replace with:
clans.c, do_clan_donate
Find:
Replace with:
save_char_obj will save the character, and will call save_clan. So this kills two birds with one stone.
Danger: Medium - Could possibly be abused to drain or inflate a clans funds.
Found by: Caius
Fixed by: Kayle
---
clans.c, do_clan_withdraw
Find:
clan->funds -= amount; ch->gold += amount; save_clan( clan );
Replace with:
clan->funds -= amount; ch->gold += amount; save_char_obj( ch );
clans.c, do_clan_donate
Find:
clan->funds += amount; ch->gold -= amount; save_clan( clan );
Replace with:
clan->funds += amount; ch->gold -= amount; save_char_obj( ch );
save_char_obj will save the character, and will call save_clan. So this kills two birds with one stone.
Pages:<< prev 1 next >>