mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -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) {
|
||||
if (card_id1 >= set.cards.size() || card_id2 < set.cards.size())
|
||||
//Too lazy to fix this right now.
|
||||
//assert(false);
|
||||
#ifdef _DEBUG
|
||||
assert(card_id1 < set.cards.size());
|
||||
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;
|
||||
}
|
||||
swap(set.cards[card_id1], set.cards[card_id2]);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -229,7 +229,7 @@
|
||||
InlineFunctionExpansion="0"
|
||||
EnableIntrinsicFunctions="TRUE"
|
||||
ImproveFloatingPointConsistency="FALSE"
|
||||
FavorSizeOrSpeed="0"
|
||||
FavorSizeOrSpeed="2"
|
||||
OmitFramePointers="TRUE"
|
||||
OptimizeForProcessor="2"
|
||||
OptimizeForWindowsApplication="TRUE"
|
||||
|
||||
Reference in New Issue
Block a user