aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index ef2f749..cdfc798 100644
--- a/util.h
+++ b/util.h
@@ -53,7 +53,12 @@ static void set_resource_string(OBJECT *tree, short obj, const char *string)
long addr;
/* What a freakin' nightmare... */
+#ifdef PCGEM
+ addr = tree[obj].ob_spec;
+#else
addr = tree[obj].ob_spec.index;
+#endif
+
strcpy((char *)addr, string);
}