summaryrefslogtreecommitdiffstats
path: root/mbbsd/ch_go.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/ch_go.c')
-rw-r--r--mbbsd/ch_go.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/ch_go.c b/mbbsd/ch_go.c
index 9c7256cd..a9e68005 100644
--- a/mbbsd/ch_go.c
+++ b/mbbsd/ch_go.c
@@ -819,9 +819,9 @@ go_gameend(ChessInfo* info, ChessGameResult result)
currutmp->go_tie++;
}
- go_usr_put(&cuser, user1);
+ go_usr_put(cuser_ref, user1);
- passwd_sync_update(usernum, &cuser);
+ passwd_sync_update(usernum, cuser_ref);
} else if (info->mode == CHESS_MODE_REPLAY) {
free(info->board);
free(info->tag);
@@ -936,9 +936,9 @@ gochess(int s, ChessGameMode mode)
if (info->mode == CHESS_MODE_VERSUS) {
/* Assume that info->user1 is me. */
info->user1.lose++;
- passwd_sync_query(usernum, &cuser);
- go_usr_put(&cuser, &info->user1);
- passwd_sync_update(usernum, &cuser);
+ passwd_sync_query(usernum, cuser_ref);
+ go_usr_put(cuser_ref, &info->user1);
+ passwd_sync_update(usernum, cuser_ref);
}
if (mode == CHESS_MODE_WATCH)