You need to sign in or sign up before continuing.
Commit 58e14f62 authored by twanvl's avatar twanvl

These asserts were there because this shouldn't happen, I added them back for...

These asserts were there because this shouldn't happen, I added them back for debug builds. We really should find the cause of any violations.
parent b6a7a7fa
...@@ -52,10 +52,14 @@ String ReorderCardsAction::getName(bool to_undo) const { ...@@ -52,10 +52,14 @@ String ReorderCardsAction::getName(bool to_undo) const {
} }
void ReorderCardsAction::perform(bool to_undo) { void ReorderCardsAction::perform(bool to_undo) {
if (card_id1 >= set.cards.size() || card_id2 < set.cards.size()) #ifdef _DEBUG
//Too lazy to fix this right now. assert(card_id1 < set.cards.size());
//assert(false); assert(card_id2 < set.cards.size());
#endif
if (card_id1 >= set.cards.size() || card_id2 < set.cards.size()) {
// TODO : Too lazy to fix this right now.
return; return;
}
swap(set.cards[card_id1], set.cards[card_id2]); swap(set.cards[card_id1], set.cards[card_id2]);
} }
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
InlineFunctionExpansion="0" InlineFunctionExpansion="0"
EnableIntrinsicFunctions="TRUE" EnableIntrinsicFunctions="TRUE"
ImproveFloatingPointConsistency="FALSE" ImproveFloatingPointConsistency="FALSE"
FavorSizeOrSpeed="0" FavorSizeOrSpeed="2"
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="2" OptimizeForProcessor="2"
OptimizeForWindowsApplication="TRUE" OptimizeForWindowsApplication="TRUE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment