mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
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.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@955 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user