Fixed random value getter from BaseLibrary being broken.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1eb751538d
commit
3b1c0e84e1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue