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.
This commit is contained in:
Marcus Whybrow 2012-07-20 08:15:42 +01:00
parent a5d0fc80b1
commit 4185db1e59

View File

@ -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