Add a wrapper for terrain mod property

This commit is contained in:
Alistair Riddoch 2010-09-18 19:59:40 +01:00
parent 4af56c3ffd
commit e84dbc013f
6 changed files with 159 additions and 1 deletions

View file

@ -783,6 +783,12 @@ void init_python_api(bool log_stdout)
return;
}
PyTerrainModProperty_Type.tp_new = PyType_GenericNew;
if (PyType_Ready(&PyTerrainModProperty_Type) < 0) {
log(CRITICAL, "Python init failed to ready TerrainModProperty wrapper type");
return;
}
debug(std::cout << Py_GetPath() << std::endl << std::flush;);
}