Skip to content

Commit 5e31cc2

Browse files
committed
Fix player targets (@ symbol) for array items
1 parent f80ef8e commit 5e31cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OWScript/Parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def variable(self):
496496
self.eat('NAME')
497497
if self.curvalue == '@':
498498
self.eat('AT')
499-
node.player = self.primary()
499+
node.player = self.atom()
500500
except Errors.ParseError:
501501
raise Errors.SyntaxError('Invalid variable syntax', pos=pos)
502502
node._pos = pos

0 commit comments

Comments
 (0)