From: Kahrl Date: Wed, 3 Jul 2013 18:33:54 +0000 (+0200) Subject: Whoever called a function parameter m_device is fired without notice. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b850f0f03829cbb024d22672de0af29cab001d86;p=zefram%2Fminetest%2Fminetest_engine.git Whoever called a function parameter m_device is fired without notice. --- diff --git a/src/tile.cpp b/src/tile.cpp index 1361d57e..6e4fde01 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -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::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 \""