attempt to fix for py2.3
authorCampbell Barton <ideasman42@gmail.com>
Wed, 29 Apr 2009 16:48:00 +0000 (16:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 29 Apr 2009 16:48:00 +0000 (16:48 +0000)
source/gameengine/GameLogic/SCA_PythonController.cpp

index 39367c1ab9ee6294ce2ec0c4a7a179484c43589c..b9f8dde89bfa9e8deb3f60cc48f1219e0fa91684 100644 (file)
@@ -323,7 +323,7 @@ bool SCA_PythonController::Import()
                return false;
        }
        
-       PyObject *mod = PyImport_ImportModule(module_func[0]);
+       PyObject *mod = PyImport_ImportModule((char *)module_func[0].Ptr());
        if(mod && m_debug) {
                Py_DECREF(mod); /* getting a new one so dont hold a ref to the old one */
                mod= PyImport_ReloadModule(mod);