fix: Separate moduleVersion and logger declarations in TankModule.h

ProductionHotReload test modifies moduleVersion line with string replacement,
which was corrupting logger declaration when both were on same line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
StillHammer 2025-11-20 11:19:08 +08:00
parent 04a41d957a
commit 113b966341

View File

@ -32,7 +32,8 @@ public:
private:
std::vector<Tank> tanks;
int frameCount = 0;
std::string moduleVersion = "v1.0";std::shared_ptr<spdlog::logger> logger;
std::string moduleVersion = "v1.0";
std::shared_ptr<spdlog::logger> logger;
std::unique_ptr<IDataNode> config;
void updateTank(Tank& tank, float dt);