diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-02 02:20:40 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-02 02:20:40 +0100 |
commit | 713c73970d93990e40555764ff868ff83182f6ef (patch) | |
tree | a39a4a9125bb24663025b1a3d040cea1876726ee | |
parent | Changed world gamemode location to world.ini for world based gamemodes. (diff) | |
download | cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar.gz cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar.bz2 cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar.lz cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar.xz cuberite-713c73970d93990e40555764ff868ff83182f6ef.tar.zst cuberite-713c73970d93990e40555764ff868ff83182f6ef.zip |
-rw-r--r-- | source/cLuaCommandBinder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cLuaCommandBinder.cpp b/source/cLuaCommandBinder.cpp index a800513e1..b3f20cbdc 100644 --- a/source/cLuaCommandBinder.cpp +++ b/source/cLuaCommandBinder.cpp @@ -53,6 +53,8 @@ bool cLuaCommandBinder::BindCommand( const std::string & a_Command, const std::s bool cLuaCommandBinder::HandleCommand( const std::string & a_Command, cPlayer* a_Player )
{
std::vector<std::string> Split = StringSplit( a_Command, " ");
+ if( Split.size() == 0 ) return false;
+
CommandMap::iterator FoundCommand = m_BoundCommands.find( Split[0] );
if( FoundCommand != m_BoundCommands.end() )
{
|