2005-09-30 Al Riddoch <alriddoch@zepler.org>

* rulesets/PythonThingScript.cpp, rulesets/PythonMindScript.cpp: Fix a
	  bug which meant that most operations returned from scripts were
	  silently ignored.
This commit is contained in:
Al Riddoch 2005-09-30 01:02:37 +00:00
parent c1aaf53880
commit 3b1e72cf7f
3 changed files with 8 additions and 2 deletions

View file

@ -62,7 +62,7 @@ bool PythonMindScript::operation(const std::string & op_type,
<< std::flush;);
if (PyOperation_Check(ret)) {
PyOperation * op = (PyOperation*)ret;
if (!op->operation.isValid()) {
if (op->operation.isValid()) {
ret_list.push_back(op->operation);
} else {
debug( std::cout << "Method returned invalid op" << std::endl