fix segfault

This commit is contained in:
Geoffray Levasseur committed 2026-11-07 12:32:58 +01:00
1 parent 80a0f115af
commit 79a6da2fc6
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ void CustomAI::process(int command, void *data)
break;
}
case scContact: {
const int nation = static_cast<int>(reinterpret_cast<std::intptr_t>(data));
const int nation = *static_cast<const int *>(data);
if (wantNegotiation(nation, NegoTime::EnemyCalled)) {
rawServerCall(scDipStart, 0, nullptr);
opponent = nation;