Alternate fix for use-after-free error.

This commit is contained in:
Levi Pearson 2017-02-04 21:47:57 -07:00
parent 7b3016bacf
commit 6c15ac4d5e

View File

@ -381,7 +381,7 @@ void ScrollingList::update(float dt)
Component::update(dt);
if(components_.size() == 0) return;
if(!items_ || items_->size() == 0) return;
if(!items_) return;
for(unsigned int i = 0; i < scrollPoints_->size(); i++)
{