From 9ab8d88753682598ac1eb31910b6cad2039506c2 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov Date: Wed, 30 Oct 2019 17:54:34 +0300 Subject: [PATCH] Accept a bogus cell string argument for Position --- components/compiler/extensions0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/compiler/extensions0.cpp b/components/compiler/extensions0.cpp index f3c4bfed7..0c7b0e26b 100644 --- a/components/compiler/extensions0.cpp +++ b/components/compiler/extensions0.cpp @@ -537,7 +537,7 @@ namespace Compiler extensions.registerInstruction("setpos","cf",opcodeSetPos,opcodeSetPosExplicit); extensions.registerFunction("getpos",'f',"c",opcodeGetPos,opcodeGetPosExplicit); extensions.registerFunction("getstartingpos",'f',"c",opcodeGetStartingPos,opcodeGetStartingPosExplicit); - extensions.registerInstruction("position","ffffX",opcodePosition,opcodePositionExplicit); + extensions.registerInstruction("position","ffffz",opcodePosition,opcodePositionExplicit); extensions.registerInstruction("positioncell","ffffcX",opcodePositionCell,opcodePositionCellExplicit); extensions.registerInstruction("placeitemcell","ccffffX",opcodePlaceItemCell); extensions.registerInstruction("placeitem","cffffX",opcodePlaceItem);