summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-03-11 17:45:23 +0000
committerfrosch <frosch@openttd.org>2013-03-11 17:45:23 +0000
commitf800c826a82268ca0223758c7d3d45f8b0d59771 (patch)
treec997d16369c9ab8c617236aec4517d16548161a0 /src/spritecache.cpp
parent553277dcd3f035fa722fbd9a624a5ff3d12cd6b3 (diff)
downloadopenttd-f800c826a82268ca0223758c7d3d45f8b0d59771.tar.xz
(svn r25081) -Fix [FS#5500]: Catch exception anonymously, if the exception content is not of interest.
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r--src/spritecache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index 3833d500b..767282d1e 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -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;
}