summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index dab7b54..11eaf1a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -11,7 +11,7 @@ static inline struct cmumble_user *
find_user(struct cmumble_context *ctx, uint32_t session)
{
return cmumble_find_by_id(ctx->users,
- G_STRUCT_OFFSET(struct cmumble_user, id),
+ G_STRUCT_OFFSET(struct cmumble_user, session),
session);
}