summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
Diffstat (limited to 'lisc')
-rw-r--r--lisc/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisc/util.c b/lisc/util.c
index 90fa1bb..993a3d7 100644
--- a/lisc/util.c
+++ b/lisc/util.c
@@ -202,6 +202,7 @@ addcon(Con *c0, Con *c1)
 		if (c1->type == CAddr) {
 			if (c0->type == CAddr)
 				diag("addcon: adding two addresses");
+			c0->type = CAddr;
 			strcpy(c0->label, c1->label);
 		}
 		c0->val += c1->val;