summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 34a1e9c72..68fed3fb9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -659,8 +659,7 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, struct mmo_chars
unsigned long tick = gettick();
sd = map_id2sd(id);
- if(sd==NULL)
- return 1;
+ nullpo_retr(1, sd);
sd->login_id2 = login_id2;