From 99855773d7d702cf21aed4e0748ffd61e6c6e6ef Mon Sep 17 00:00:00 2001 From: Intyre Date: Sun, 24 Jan 2016 18:33:34 +0100 Subject: [PATCH] Fix for command alias arguments --- src/pocketmine/command/FormattedCommandAlias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/command/FormattedCommandAlias.php b/src/pocketmine/command/FormattedCommandAlias.php index 842ab59f6..fb5829deb 100644 --- a/src/pocketmine/command/FormattedCommandAlias.php +++ b/src/pocketmine/command/FormattedCommandAlias.php @@ -96,7 +96,7 @@ class FormattedCommandAlias extends Command{ $argStart = $index; - while($index < strlen($formatString) and self::inRange($formatString{$index} - 48, 0, 9)){ + while($index < strlen($formatString) and self::inRange(ord($formatString{$index}) - 48, 0, 9)){ ++$index; }