Fixed CustomComponentConstructor::get_component() (#1653)

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Anthony Uk 2021-04-06 13:50:31 +02:00 committed by GitHub
parent 2d618768d5
commit 5c359856ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ class CustomComponentConstructor {
} }
} }
Component *get_component(int i) { return this->components_[i]; } Component *get_component(int i) const { return this->components_[i]; }
protected: protected:
std::vector<Component *> components_; std::vector<Component *> components_;