A fix for the missing pad1 bug: henceforth, world->pad1 shall be known as
[blender.git] / source / gameengine / Converter / KX_BlenderSceneConverter.cpp
index a043291c5d5c7f2cda7aaf3fd867445a618b304c..15100cc3a009e8cded1dcf46668c28116816b394 100644 (file)
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #ifdef WIN32
 
        #pragma warning (disable:4786) // suppress stl-MSVC debug info warning
@@ -179,7 +183,7 @@ void KX_BlenderSceneConverter::ConvertScene(const STR_String& scenename,
                if (blenderscene->world)
                {
                        
-                       switch (blenderscene->world->pad1)
+                       switch (blenderscene->world->physicsEngine)
                        {
                                
                        case 1: