1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
vcmi/AI
Vadim Markovtsev 2c1dddde33 Fix memory problems with BonusList
Bonus * -> std::shared_ptr<Bonus>

This cures the following problems:

1) Memory corruption at exit. Some Bonus-es were deleted twice (mods?).
2) Memory leaks. Some Bonuses were not deleted.
3) Reduce the number of "Orphaned child" messages.

Valgrind reports 0 leaked memory now and no invalid reads/writes.
2016-09-29 15:08:00 +02:00
..
BattleAI Fix memory problems with BonusList 2016-09-29 15:08:00 +02:00
EmptyAI Merge pull request #203 from vcmi/logFormat 2016-08-29 17:32:44 +04:00
FuzzyLite switched to -std=gnu++11 2016-01-18 17:49:07 +01:00
StupidAI Refactoring: only use RNGs explicitly to avoid bug prone code in future 2016-09-11 00:10:46 +03:00
VCAI VCAI::showGarrisonDialog: don't try to pick army from locked garrison 2016-09-19 03:30:55 +03:00
CMakeLists.txt add FL_CPP11 preprocessor define independent of which fuzzylite is used 2014-11-17 11:42:30 +01:00
GeniusAI.brain Various fixes. Temporarily replaced neural network's output with random number. 2009-08-21 18:18:52 +00:00