Fixed issue where hitdata read wrong memory.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-04 12:22:05 +02:00
parent 08ef84f6d6
commit f38161f573
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ namespace CreatureLib::Battling {
public:
EventHook() : _offset(0), _capacity(defaultSize) {
auto ptr = calloc(defaultSize, 1);
auto ptr = malloc(_capacity);
if (ptr == nullptr) {
THROW_CREATURE("Out of memory.");
}