Skip to content

Commit

Permalink
Whoever called a function parameter m_device is fired without notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jul 3, 2013
1 parent a225efa commit b850f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tile.cpp
Expand Up @@ -239,15 +239,15 @@ class SourceImageCache
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);
if(n != m_images.end()){
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 \""
Expand Down

0 comments on commit b850f0f

Please sign in to comment.