Whoever called a function parameter m_device is fired without notice.
authorKahrl <kahrl@gmx.net>
Wed, 3 Jul 2013 18:33:54 +0000 (20:33 +0200)
committerKahrl <kahrl@gmx.net>
Wed, 3 Jul 2013 18:33:54 +0000 (20:33 +0200)
src/tile.cpp

index 1361d57e54449835c43379d145868ff02ab33f72..6e4fde011acf411ec8ba7021a8cd472679199231 100644 (file)
@@ -239,7 +239,7 @@ public:
                return NULL;
        }
        // Primarily fetches from cache, secondarily tries to read from filesystem
-       video::IImage* getOrLoad(const std::string &name, IrrlichtDevice *m_device)
+       video::IImage* getOrLoad(const std::string &name, IrrlichtDevice *device)
        {
                std::map<std::string, video::IImage*>::iterator n;
                n = m_images.find(name);
@@ -247,7 +247,7 @@ public:
                        n->second->grab(); // Grab for caller
                        return n->second;
                }
-               video::IVideoDriver* driver = m_device->getVideoDriver();
+               video::IVideoDriver* driver = device->getVideoDriver();
                std::string path = getTexturePath(name.c_str());
                if(path == ""){
                        infostream<<"SourceImageCache::getOrLoad(): No path found for \""