diff options
author | Christoph Mallon | 2011-08-07 15:02:43 +0200 |
---|---|---|
committer | Christoph Mallon | 2011-08-07 15:19:07 +0200 |
commit | c876e87efc574a646268bd57428cdcef87a517a8 (patch) | |
tree | 784f13c46bdfafca966848fdb3f23b0272968900 /common | |
parent | 79729d03e014962cd9bcef263145997eec63ec38 (diff) | |
download | scummvm-rg350-c876e87efc574a646268bd57428cdcef87a517a8.tar.gz scummvm-rg350-c876e87efc574a646268bd57428cdcef87a517a8.tar.bz2 scummvm-rg350-c876e87efc574a646268bd57428cdcef87a517a8.zip |
COMMON: Correct error message.
The message displays bytes, but capacity is the count of objects, so multiply by their size.
Diffstat (limited to 'common')
-rw-r--r-- | common/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/array.h b/common/array.h index bc378d5233..18cecfb98f 100644 --- a/common/array.h +++ b/common/array.h @@ -274,7 +274,7 @@ protected: if (capacity) { _storage = new T[capacity]; if (!_storage) - ::error("Common::Array: failure to allocate %u bytes", capacity); + ::error("Common::Array: failure to allocate %u bytes", capacity * (uint)sizeof(T)); } else { _storage = 0; } |