fix segfault
This commit is contained in:
1 parent
80a0f115af
commit
79a6da2fc6
1 file changed
+1
-1
+1
-1
@@ -134,7 +134,7 @@ void CustomAI::process(int command, void *data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case scContact: {
|
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)) {
|
if (wantNegotiation(nation, NegoTime::EnemyCalled)) {
|
||||||
rawServerCall(scDipStart, 0, nullptr);
|
rawServerCall(scDipStart, 0, nullptr);
|
||||||
opponent = nation;
|
opponent = nation;
|
||||||
|
|||||||
Reference in new issue
Block a user