diff options
author | Max Horn | 2009-05-26 11:28:38 +0000 |
---|---|---|
committer | Max Horn | 2009-05-26 11:28:38 +0000 |
commit | 94dfc8f6386ebf0f4a13094e68eaec289a974347 (patch) | |
tree | 06c3e53c20f2c43cec51c9481a0e9227e79fc3e1 /engines/sci/engine/kmovement.cpp | |
parent | ae378632cd4c28bc9d598aa05b1fe4365f7f1023 (diff) | |
download | scummvm-rg350-94dfc8f6386ebf0f4a13094e68eaec289a974347.tar.gz scummvm-rg350-94dfc8f6386ebf0f4a13094e68eaec289a974347.tar.bz2 scummvm-rg350-94dfc8f6386ebf0f4a13094e68eaec289a974347.zip |
Fixed a bug in Common::Array (including a unit test for it), and changed the way the internal storage growth over time.
The bug could result in incorrect results when using push_back (or insert_at)
to insert data from an array into itself if this insertions would cause the
internal array storage to grow. Also added a unit test for this bug.
Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two,
instead of being increased by 32.
svn-id: r40907
Diffstat (limited to 'engines/sci/engine/kmovement.cpp')
0 files changed, 0 insertions, 0 deletions