added result screens
fixed bug about picking up two boosts crashing the game
This commit is contained in:
@ -37,7 +37,7 @@ void character::insert_effect(std::unique_ptr<potion> effect) {
|
||||
effects.push_back(std::move(effect));
|
||||
|
||||
for (int i = effects.size() - 1; i > 0 &&
|
||||
effect->get_priority() < effects[i - 1]->get_priority(); --i)
|
||||
effects[i]->get_priority() < effects[i - 1]->get_priority(); --i)
|
||||
std::swap(effects[i], effects[i - 1]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user