FULLPIPE: Fix bugs in Movement::updateCurrDynamicPhase()
This commit is contained in:
parent
cac623a821
commit
638bd3014e
2 changed files with 14 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue