fix gcc build

This commit is contained in:
2025-07-30 17:56:13 +02:00
parent 2e556e0d45
commit 2b8447766a
4 changed files with 9 additions and 5 deletions

View File

@@ -108,7 +108,7 @@ int main(int argc, char** argv) {
display.OnKeyDown.Connect([&simulation](SDL_Keycode key){
if (key == SDLK_A) {
auto spawn = std::make_shared<td::protocol::commands::SpawnTroopCommand>(0, 0, td::Vec2fp{td::FpFloat(77), td::FpFloat(13)}, 0);
std::array<td::protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps{};
td::Array<td::protocol::LockStep, LOCKSTEP_BUFFER_SIZE> steps{};
steps[0].push_back(spawn);
td::protocol::packets::LockStepsPacket packet{0, steps};
simulation.HandlePacket(packet);