@@ -356,7 +356,7 @@ void StateSyncer::MoveSoldier(PlayerId player_id, int64_t soldier_id,
356356 " Soldier with id " +
357357 std::to_string (
358358 state_soldiers[static_cast <int >(player_id)][soldier_index]
359- . id ) +
359+ -> GetActorId () ) +
360360 " must be alive in order to act" );
361361 return ;
362362 }
@@ -400,7 +400,7 @@ void StateSyncer::AttackTower(PlayerId player_id, int64_t soldier_id,
400400 " Soldier with id " +
401401 std::to_string (
402402 state_soldiers[static_cast <int >(player_id)][soldier_index]
403- . id ) +
403+ -> GetActorId () ) +
404404 " must be alive in order to act" );
405405 return ;
406406 }
@@ -465,7 +465,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id,
465465 " Soldier with id " +
466466 std::to_string (
467467 state_soldiers[static_cast <int >(player_id)][soldier_index]
468- . id ) +
468+ -> GetActorId () ) +
469469 " must be alive in order to act" );
470470 return ;
471471 }
@@ -494,7 +494,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id,
494494 " Enemy soldier with id " +
495495 std::to_string (
496496 state_soldiers[static_cast <int >(player_id)][soldier_index]
497- . id ) +
497+ -> GetActorId () ) +
498498 " must be alive to attack it" );
499499 return ;
500500 }
@@ -504,7 +504,7 @@ void StateSyncer::AttackSoldier(PlayerId player_id, int64_t soldier_id,
504504 " Cannot damage invulnerable soldier with id " +
505505 std::to_string (
506506 state_soldiers[static_cast <int >(player_id)][soldier_index]
507- . id ));
507+ -> GetActorId () ));
508508 }
509509
510510 state->AttackActor (player_id, soldier_id, enemy_soldier_id);
0 commit comments