Skip to content

Commit b850f0f

Browse files
committedJul 3, 2013
Whoever called a function parameter m_device is fired without notice.
1 parent a225efa commit b850f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/tile.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@ class SourceImageCache
239239
return NULL;
240240
}
241241
// Primarily fetches from cache, secondarily tries to read from filesystem
242-
video::IImage* getOrLoad(const std::string &name, IrrlichtDevice *m_device)
242+
video::IImage* getOrLoad(const std::string &name, IrrlichtDevice *device)
243243
{
244244
std::map<std::string, video::IImage*>::iterator n;
245245
n = m_images.find(name);
246246
if(n != m_images.end()){
247247
n->second->grab(); // Grab for caller
248248
return n->second;
249249
}
250-
video::IVideoDriver* driver = m_device->getVideoDriver();
250+
video::IVideoDriver* driver = device->getVideoDriver();
251251
std::string path = getTexturePath(name.c_str());
252252
if(path == ""){
253253
infostream<<"SourceImageCache::getOrLoad(): No path found for \""

0 commit comments

Comments
 (0)
Please sign in to comment.