mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
[Crash Fix] Fixed crashing a few min after server start when AiPlayerbot.PerfMonEnabled=1 (would crash with ACCESS_VIOLATION on first PlayerbotFactory::Randomize() call due to pmo->finish() being called twice on same variable). Also fixed formatting used in PerformanceMonitor::PrintStats() (would print %7.3f etc to screen instead of format the number)
This commit is contained in:
@@ -357,8 +357,8 @@ void PlayerbotFactory::Randomize(bool incremental)
|
||||
// bot->SaveToDB(false, false);
|
||||
// InitGuild();
|
||||
// bot->SaveToDB(false, false);
|
||||
if (pmo)
|
||||
pmo->finish();
|
||||
//if (pmo)
|
||||
// pmo->finish();
|
||||
|
||||
// if (bot->getLevel() >= 70)
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user