mirror of
https://github.com/minetest/minetest.git
synced 2024-11-26 17:43:45 +01:00
Whoever called a function parameter m_device is fired without notice.
This commit is contained in:
parent
a225efaec5
commit
b850f0f038
@ -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 \""
|
||||
|
Loading…
Reference in New Issue
Block a user