diff --git a/ai/src/CustomAI.cpp b/ai/src/CustomAI.cpp index 905bc21..aa4d45a 100644 --- a/ai/src/CustomAI.cpp +++ b/ai/src/CustomAI.cpp @@ -134,7 +134,7 @@ void CustomAI::process(int command, void *data) break; } case scContact: { - const int nation = static_cast(reinterpret_cast(data)); + const int nation = *static_cast(data); if (wantNegotiation(nation, NegoTime::EnemyCalled)) { rawServerCall(scDipStart, 0, nullptr); opponent = nation;