diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-03 03:17:31 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-03 03:17:31 +0800 |
commit | 086305902537f6662e32bbe26003e7a402327466 (patch) | |
tree | 598b37a15ea4b83d3baa9200c628fe882a36e22d /mbbsd | |
parent | 05716fc8878361d9ade7331c14b927188e668487 (diff) | |
download | pttbbs-086305902537f6662e32bbe26003e7a402327466.tar pttbbs-086305902537f6662e32bbe26003e7a402327466.tar.gz pttbbs-086305902537f6662e32bbe26003e7a402327466.tar.bz2 pttbbs-086305902537f6662e32bbe26003e7a402327466.tar.lz pttbbs-086305902537f6662e32bbe26003e7a402327466.tar.xz pttbbs-086305902537f6662e32bbe26003e7a402327466.tar.zst pttbbs-086305902537f6662e32bbe26003e7a402327466.zip |
do NOT reload memory if shared-memoy fails
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@407 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/passwd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 7e877ac4..4291fa3e 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -1,4 +1,4 @@ -/* $Id: passwd.c,v 1.4 2002/07/02 18:54:28 in2 Exp $ */ +/* $Id: passwd.c,v 1.5 2002/07/02 19:17:31 in2 Exp $ */ #include "bbs.h" static int semid = -1; @@ -51,7 +51,8 @@ int passwd_update_money(int num) { if(num < 1 || num > MAX_USERS) return -1; passwd_query(num, &user); - user.money = moneyof(num); + if( SHM->loaded ) + user.money = moneyof(num); passwd_update(num, &user); return 0; } |