Fixed random value getter from BaseLibrary being broken.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-25 11:08:04 +02:00
parent 1eb751538d
commit 3b1c0e84e1
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 3 deletions

View File

@ -16,9 +16,7 @@ namespace CreatureLib::Library {
size_t _index; size_t _index;
public: public:
BaseLibrary(size_t initialCapacity = 32) : _values(initialCapacity), _listValues(0) { BaseLibrary(size_t initialCapacity = 32) : _values(initialCapacity), _listValues(initialCapacity) {}
_listValues.Resize(initialCapacity);
}
virtual ~BaseLibrary() { virtual ~BaseLibrary() {
for (const auto& v : _values) { for (const auto& v : _values) {