From e2a400dd6b0cf5d917de2f5e8c90387348bccd69 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 1e448c04d..42bbd5608 100644 --- a/src/pocketmine/command/FormattedCommandAlias.php +++ b/src/pocketmine/command/FormattedCommandAlias.php @@ -93,7 +93,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; }