Commit 5e56e467 authored by ipkiss's avatar ipkiss
Browse files

* skins2/parser/interpreter.cpp: Fixed a crash when using an action of the form "foo;"

parent 3d8de5ba
......@@ -174,6 +174,14 @@ CmdGeneric *Interpreter::parseAction( const string &rAction, Theme *pTheme )
// Now remove any whitespace at the beginning of the right part,
// and go on checking for further actions in it...
rightPart = rightPart.substr( pos, rightPart.size() );
if ( rightPart.find_first_not_of( " \t;" ) == string::npos )
{
// The right part is completely buggy, it's time to leave the
// loop...
rightPart = "";
break;
}
rightPart =
rightPart.substr( rightPart.find_first_not_of( " \t;" ),
rightPart.size() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment