Add nullability to large parts of the codebase
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2022-03-23 18:30:35 +01:00
1 parent beb2e44a0b
commit eccf2c9121
53 files changed
+240 -206

No files matched your search

+4 -2
View File
@@ -6,9 +6,11 @@
using namespace CreatureLib::Library;
TEST_CASE("Set Variant") {
auto defaultVariant = new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
auto defaultVariant =
new SpeciesVariant("default", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, new LearnableAttacks(0));
auto c = CreatureSpecies(0, "foo", defaultVariant, 0, "", 0);
auto secondVariant = new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, nullptr);
auto secondVariant =
new SpeciesVariant("second", 0, 0, 0, {0, 1}, StatisticSet<u16>(), {}, {}, new LearnableAttacks(0));
c.SetVariant("second"_cnc, secondVariant);
}