From 402cf6d89db56f59ee2097e7d2d0f2fb935a898a Mon Sep 17 00:00:00 2001 From: Patman64 Date: Sat, 1 Aug 2015 16:20:48 -0400 Subject: [PATCH] Remove dead variable ElunaInstanceAI::canSave It was used during development of instance scripting to smooth over differences between loading instances on CMaNGOS and Trinity. However, another workaround was used and it was no longer needed. --- ElunaInstanceAI.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ElunaInstanceAI.h b/ElunaInstanceAI.h index 68450d0..f1a7ece 100644 --- a/ElunaInstanceAI.h +++ b/ElunaInstanceAI.h @@ -60,13 +60,8 @@ private: // either through `Load` or `Save`. std::string lastSaveData; - // Used to prevent saving this AI while it's still loading, - // effectively nuking the data that's supposed to be loaded. - // Set to `false` while loading, `true` otherwise. - bool canSave; - public: - ElunaInstanceAI(Map* map) : InstanceData(map), canSave(true) + ElunaInstanceAI(Map* map) : InstanceData(map) { }