Skip to content

Commit

Permalink
Resolved the second controller disappear problem. (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu committed Mar 8, 2019
1 parent ab9d37c commit b5702f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/ControllerContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct ControllerContainer::State {
}

void SetUpModelsGroup(const int32_t aModelIndex) {
if (models.size() >= aModelIndex) {
if (aModelIndex >= models.size()) {
models.resize((size_t)(aModelIndex + 1));
}
if (!models[aModelIndex]) {
Expand Down

0 comments on commit b5702f7

Please sign in to comment.