]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/swap.c
Extend the common header of struct empobj to include uid
[empserver] / src / lib / commands / swap.c
index 6c8fd3073db29522f1cfaee180c5c3f781c35604..a28b89913c38ae3c266f01166e00eeef40c0ed12 100644 (file)
@@ -63,12 +63,14 @@ swaps(void)
     /* change the location of secta to that of sectb */
     secta.sct_x = sectb.sct_x;
     secta.sct_y = sectb.sct_y;
+    secta.sct_uid = sectb.sct_uid;
     secta.sct_dist_x = sectb.sct_x;
     secta.sct_dist_y = sectb.sct_y;
     secta.sct_coastal = sectb.sct_coastal;
     /* change the location of sectb to where secta was */
     sectb.sct_x = tmp.sct_x;
     sectb.sct_y = tmp.sct_y;
+    sectb.sct_uid = tmp.sct_uid;
     sectb.sct_dist_x = tmp.sct_x;
     sectb.sct_dist_y = tmp.sct_y;
     sectb.sct_coastal = tmp.sct_coastal;