FULLPIPE: Fix bugs in Movement::updateCurrDynamicPhase()

This commit is contained in:
Eugene Sandulenko 2013-08-29 14:01:35 +03:00
parent cac623a821
commit 638bd3014e
2 changed files with 14 additions and 4 deletions

View file

@ -1054,6 +1054,9 @@ DynamicPhase *Shadows::findSize(int width, int height) {
int idx = 0;
int min = 1000;
if (!_items.size())
return 0;
for (uint i = 0; i < _items.size(); i++) {
int w = abs(width - _items[i].width);
if (w < min) {