aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0245801..a946609 100644
--- a/src/main.c
+++ b/src/main.c
@@ -107,7 +107,7 @@ int script_color(interpreter *it)
igetarg_integer(it, 2));
variable v;
v.valtype = INTEGER;
- v.value = c;
+ INT(&v) = c;
v.svalue = 0;
isetstr(&v);
iret(it, &v);
@@ -120,7 +120,7 @@ int script_rand(interpreter *it)
next = (next * 182 + 1829) % igetarg_integer(it, 0);
variable v;
v.valtype = INTEGER;
- v.value = next;
+ INT(&v) = next;
v.svalue = 0;
isetstr(&v);
iret(it, &v);