diff options
author | Kahrl <kahrl@gmx.net> | 2013-07-03 20:33:54 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-07-03 20:33:54 +0200 |
commit | b850f0f03829cbb024d22672de0af29cab001d86 (patch) | |
tree | 029b1f8520d98d6d16db9db8d2c00fc98fbbb5b1 | |
parent | a225efaec549f9b2b6d6a876b81279868abb18ba (diff) | |
download | minetest-b850f0f03829cbb024d22672de0af29cab001d86.tar.gz minetest-b850f0f03829cbb024d22672de0af29cab001d86.tar.bz2 minetest-b850f0f03829cbb024d22672de0af29cab001d86.zip |
Whoever called a function parameter m_device is fired without notice.
-rw-r--r-- | src/tile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 1361d57e5..6e4fde011 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<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 \"" |