mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25081) -Fix [FS#5500]: Catch exception anonymously, if the exception content is not of interest.
This commit is contained in:
parent
553277dcd3
commit
f800c826a8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue