Fixed memory leak in unit tests
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-05-20 17:23:25 +02:00
parent 6c7c460640
commit d3b0fc1cec
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 0 deletions

View File

@ -13,5 +13,7 @@ TEST_CASE("Basic Experience gain test", "battling") {
auto expLib = lib->GetExperienceLibrary();
expLib->HandleExperienceGain(mon2, {mon1});
REQUIRE(mon1->GetExperience() - initialExp == 4339);
delete mon1;
delete mon2;
}
#endif