1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

(svn r25102) [1.3] -Backport from trunk:

- Fix: Limit aircraft property 0D to 19, since the conversion result to km-ish/h needs to fit into a byte [FS#5492] (r25099)
- Fix: Clicking the statusbar crashed, when news were pending but no news were shown yet [FS#5486] (r25093)
- Fix: Make editbox character filters also apply to pasted content from clipboard (r25090, r25089)
- Fix: Catch exception anonymously, if the exception content is not of interest [FS#5500] (r25081)
This commit is contained in:
rubidium
2013-03-17 20:58:40 +00:00
parent 278cebf202
commit 42e569e0d1
14 changed files with 26 additions and 21 deletions

View File

@@ -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;
}