From 4185db1e59abef5bae3cdd8edabc1045063b75a2 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Fri, 20 Jul 2012 08:15:42 +0100 Subject: [PATCH] Fixed world id bug when whorl name was not found. The ID would accidentally be left as -1, which would cause problems when loading world properties. --- init/msm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/msm b/init/msm index 55cbab8..5ceb18c 100755 --- a/init/msm +++ b/init/msm @@ -3052,7 +3052,7 @@ call_command() { fi fi - if [ -z "$wid" ]; then + if [[ "$wid" -eq "-1" ]]; then error_exit NAME_NOT_FOUND "There is no world with the name \"$specified_name\"." fi