summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 19:19:11 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-28 19:19:11 +0200
commit2243c16eddbbded3537556cac2e483baffb6edaa (patch)
treee3ef36338dc0283abf5713beab6cb297d88b3ce6 /src
parente76e3245de4cddee3d7921cc67f1bfd30ce9cabd (diff)
downloadcmumble-2243c16eddbbded3537556cac2e483baffb6edaa.tar.gz
cmumble-2243c16eddbbded3537556cac2e483baffb6edaa.tar.bz2
cmumble-2243c16eddbbded3537556cac2e483baffb6edaa.zip
find_by_id: Fix lookup (v2)
The offset should be taken from the (GList *)::data pointer, not the list directly.. v2: Drop accidentially commited wip stuff
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index a98731b..b2549af 100644
--- a/src/util.c
+++ b/src/util.c
@@ -8,7 +8,7 @@ cmumble_find_by_id(GList *list, gsize member_offset, guint id)
GList *l;
for (l = list; l; l = l->next) {
- if (G_STRUCT_MEMBER(uint32_t, l, member_offset) == id) {
+ if (G_STRUCT_MEMBER(uint32_t, l->data, member_offset) == id) {
el = l->data;
break;
}