diff options
Diffstat (limited to 'mbbsd/assess.c')
-rw-r--r-- | mbbsd/assess.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c index 957d3042..95426e26 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -17,6 +17,7 @@ int inc_goodpost(int uid, int num) { passwd_query(uid, &xuser); inc(&xuser.goodpost, num); + SHM->uinfo[uid - 1].goodpost = xuser.goodpost; passwd_update(uid, &xuser); return xuser.goodpost; } @@ -25,6 +26,7 @@ int inc_badpost(int uid, int num) { passwd_query(uid, &xuser); inc(&xuser.badpost, num); + SHM->uinfo[uid - 1].badpost = xuser.badpost; passwd_update(uid, &xuser); return xuser.badpost; } @@ -33,6 +35,7 @@ int inc_goodsale(int uid, int num) { passwd_query(uid, &xuser); inc(&xuser.goodsale, num); + SHM->uinfo[uid - 1].goodsale = xuser.goodsale; passwd_update(uid, &xuser); return xuser.goodsale; } @@ -41,6 +44,7 @@ int inc_badsale(int uid, int num) { passwd_query(uid, &xuser); inc(&xuser.badsale, num); + SHM->uinfo[uid - 1].badsale = xuser.badsale; passwd_update(uid, &xuser); return xuser.badsale; } |