mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-15 22:05:07 -05: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;
|
return NULL;
|
||||||
}
|
}
|
||||||
// Primarily fetches from cache, secondarily tries to read from filesystem
|
// 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;
|
std::map<std::string, video::IImage*>::iterator n;
|
||||||
n = m_images.find(name);
|
n = m_images.find(name);
|
||||||
@ -247,7 +247,7 @@ public:
|
|||||||
n->second->grab(); // Grab for caller
|
n->second->grab(); // Grab for caller
|
||||||
return n->second;
|
return n->second;
|
||||||
}
|
}
|
||||||
video::IVideoDriver* driver = m_device->getVideoDriver();
|
video::IVideoDriver* driver = device->getVideoDriver();
|
||||||
std::string path = getTexturePath(name.c_str());
|
std::string path = getTexturePath(name.c_str());
|
||||||
if(path == ""){
|
if(path == ""){
|
||||||
infostream<<"SourceImageCache::getOrLoad(): No path found for \""
|
infostream<<"SourceImageCache::getOrLoad(): No path found for \""
|
||||||
|
Loading…
Reference in New Issue
Block a user