mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
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:
parent
c1aaf53880
commit
3b1e72cf7f
3 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue