How to get the world object in the game in Blender version 2.69?

For all the lessons that I found is used only as follows:

import bge scene = bge.logic.getCurrentScene() world = scene.world 

but on my blender 2.69 version I get an error:

 Traceback (most recent call last): File "MistColor.py", line 10, in <module> AttributeError: 'KX_Scene' object has no attribute 'world' 

I hope for your help.

0