Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Resolve the second controller disappear problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
daoshengmu committed Mar 8, 2019
1 parent f94f3b2 commit fdb4a16
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 fdb4a16

Please sign in to comment.