Skip to content

Commit

Permalink
Fix compler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion authored Dec 9, 2024
1 parent 47977f8 commit b6f4356
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions colobot-base/src/object/task/taskrecover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

#include "sound/sound.h"

#include <stdexcept>

const float ENERGY_RECOVER = 0.25f; // energy consumed by recovery
const float RECOVER_DIST = 11.8f;
Expand Down Expand Up @@ -176,7 +177,7 @@ bool CTaskRecover::EventProcess(const Event &event)
return true;
}
}
assert(0);
throw std::logic_error("Should not get here");
}


Expand Down Expand Up @@ -401,7 +402,7 @@ Error CTaskRecover::IsEnded()
}
}

assert(0);
throw std::logic_error("Should not get here");
}

// Suddenly ends the current action.
Expand Down

0 comments on commit b6f4356

Please sign in to comment.