Fixed backward compability issues

This commit is contained in:
Wiktor Mazur
2020-03-11 18:45:20 +01:00
parent bec7af9513
commit d1aa9e4303
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ fn python_callbacks_subscriber(event: game::Event) {
fn initialize(_py: Python) -> PyResult<u32> {
api::initialize(vec![
Box::new(python_callbacks_subscriber)
]).map_or(Ok(0), |_| {Ok(2)})
]).map_or(Ok(2), |_| {Ok(0)})
}
fn subscribe(_py: Python, callable: cpython::PyObject) -> PyResult<u32> {