summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-03 03:17:31 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-03 03:17:31 +0800
commit086305902537f6662e32bbe26003e7a402327466 (patch)
tree598b37a15ea4b83d3baa9200c628fe882a36e22d /mbbsd
parent05716fc8878361d9ade7331c14b927188e668487 (diff)
downloadpttbbs-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.c5
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;
}