Fixed issue where hitdata read wrong memory.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user