From 690139d2b9b588639e5e99e9851819f3ca5282bf Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 19 May 2021 18:05:13 -0500 Subject: [PATCH] Make sure item is prefixed by @ --- c2logic/instruction_definition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2logic/instruction_definition.c b/c2logic/instruction_definition.c index 2bf4045..e381f9b 100644 --- a/c2logic/instruction_definition.c +++ b/c2logic/instruction_definition.c @@ -107,7 +107,7 @@ void unit_itemDrop(struct MindustryObject obj, double amount) { asm("ucontrol itemDrop {obj} {amount} 0 0 0"); } void unit_itemTake(struct MindustryObject obj, char* item, double amount) { - asm("ucontrol itemTake {obj} {item} {amount} 0 0"); + asm("ucontrol itemTake {obj} @{item} {amount} 0 0"); } void unit_payDrop() { asm("ucontrol payDrop 0 0 0 0 0");