From c3eb5cebc683bc42b35c09fd9380c363d679e9ce Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 15 Aug 2006 21:50:46 +0000 Subject: [PATCH] fix yucky addtopack crash --- Scripts/Commands/Generic/Commands/Commands.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripts/Commands/Generic/Commands/Commands.cs b/Scripts/Commands/Generic/Commands/Commands.cs index 6d94023cb..e47a57acb 100644 --- a/Scripts/Commands/Generic/Commands/Commands.cs +++ b/Scripts/Commands/Generic/Commands/Commands.cs @@ -365,6 +365,9 @@ namespace Server.Commands.Generic public override void ExecuteList( CommandEventArgs e, ArrayList list ) { + if ( e.Arguments.Length == 0 ) + return; + ArrayList packs = new ArrayList( list.Count ); for ( int i = 0; i < list.Count; ++i )