1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix destructor order

This commit is contained in:
Andrii Danylchenko 2023-02-15 20:37:09 +02:00
parent c6feafc367
commit 6314fc0506

View File

@ -246,7 +246,6 @@ void LibClasses::init(bool onlyEssential)
void LibClasses::clear()
{
delete generaltexth;
delete heroh;
delete arth;
delete creh;
@ -263,6 +262,7 @@ void LibClasses::clear()
delete scriptHandler;
#endif
delete battlefieldsHandler;
delete generaltexth;
makeNull();
}