Fixed Segfault when overriding talent.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-01 10:27:46 +02:00
parent fa5184ad77
commit 670abd7229
2 changed files with 12 additions and 2 deletions

View File

@@ -46,4 +46,12 @@ TEST_CASE("Increase creature stat boost", "[Library]") {
delete creature;
}
TEST_CASE("Override Creature talent", "[Library]") {
auto library = TestLibrary::Get();
auto creature = CreateCreature(library, "testSpecies1"_cnc, 1).Create();
creature->OverrideActiveTalent("foobar");
REQUIRE(creature->GetActiveTalent() == "foobar");
delete creature;
}
#endif