Core/SmartAI: Remove unneeded code added in error