resolved one error and one segfault in xpp02

This commit is contained in:
lenovo
2022-12-12 22:34:11 +01:00
parent fecde1a8b1
commit 5b19461090
33 changed files with 567 additions and 326 deletions

View File

@@ -4,17 +4,17 @@
int main()
{
Warlock richard("Richard", "the Titled");
Warlock richard("Richard", "the Titled");
Dummy bob;
Fwoosh* fwoosh = new Fwoosh();
Dummy bob;
Fwoosh* fwoosh = new Fwoosh();
richard.learnSpell(fwoosh);
richard.learnSpell(fwoosh);
richard.introduce();
richard.launchSpell("Fwoosh", bob);
richard.introduce();
richard.launchSpell("Fwoosh", bob);
richard.forgetSpell("Fwoosh");
richard.launchSpell("Fwoosh", bob);
richard.forgetSpell("Fwoosh");
richard.launchSpell("Fwoosh", bob);
delete fwoosh;
}