Changeset - r20113:c196e1b4b4a3
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-03-11 17:45:23
frosch@openttd.org
(svn r25081) -Fix [FS#5500]: Catch exception anonymously, if the exception content is not of interest.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/spritecache.cpp
Show inline comments
 
@@ -862,7 +862,7 @@ static void GfxInitSpriteCache()
 
			try {
 
				/* Try to allocate 50% more to make sure we do not allocate almost all available. */
 
				_spritecache_ptr = reinterpret_cast<MemBlock *>(new byte[_allocated_sprite_cache_size + _allocated_sprite_cache_size / 2]);
 
			} catch (std::bad_alloc &oom) {
 
			} catch (std::bad_alloc &) {
 
				_spritecache_ptr = NULL;
 
			}
 

	
0 comments (0 inline, 0 general)