summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Sim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/Sim.cpp')
-rw-r--r--StarsEx/Sim.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/StarsEx/Sim.cpp b/StarsEx/Sim.cpp
index f938b7a..5e49cb0 100644
--- a/StarsEx/Sim.cpp
+++ b/StarsEx/Sim.cpp
@@ -206,7 +206,8 @@ Sim::CommitMission()
if (s->IsPlayer()) {
Player* p = Player::GetCurrentPlayer();
- p->ProcessStats(s, starshatter::engine::MissionTime());
+ s->SetFlightTime(starshatter::engine::MissionTime());
+ p->ProcessStats(s);
if (mission && mission->Type() == Mission::TRAINING &&
s->GetDeaths() == 0 && s->GetColls() == 0)