]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/bp.c
Use sctstr member sct_uid instead of recomputing it
[empserver] / src / lib / update / bp.c
index e22a65b3eb79fd7ad193e7ffb288274454ad7a96..3dd7b0d5e3b46d6d5202a45217d421accea5b0e7 100644 (file)
@@ -71,7 +71,7 @@ static enum bp_item_idx bud_key[I_MAX + 1] = {
 static struct bp *
 bp_ref(struct bp *bp, struct sctstr *sp)
 {
-    return &bp[XYOFFSET(sp->sct_x, sp->sct_y)];
+    return &bp[sp->sct_uid];
 }
 
 /*