dont add cmd to arglist
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 31 Oct 2008 13:03:55 +0000 (14:03 +0100)
committerAndreas Oberritter <obi@saftware.de>
Thu, 6 Nov 2008 00:52:03 +0000 (01:52 +0100)
lib/base/console.cpp

index 25318cc9e388550a7fb715e20dc329a7ea08799d..5ca77d12a46cc293caf8c84347c2d0ea8bc9a109 100644 (file)
@@ -497,7 +497,7 @@ eConsolePy_execute(eConsolePy* self, PyObject *argt)
                        argv[argpos++] = PyString_AsString(arg);
                }
                argv[argpos] = 0;
-               return PyInt_FromLong(self->cont->execute(argv[0], argv));
+               return PyInt_FromLong(self->cont->execute(argv[0], argv+1));
        }
        else
        {