Jeck - Fixed a debug-mode crash.

* Crash was caused by null pointer dereference after card ID conflict deletes tempCard.
This commit is contained in:
wagic.jeck
2009-11-17 23:05:24 +00:00
parent 51525d4ab8
commit 2204c097aa
+1 -1
View File
@@ -298,7 +298,7 @@ int MTGAllCards::readConfLine(std::ifstream &file, int set_id){
case 0:
if (s[0] == '['){
#if defined (_DEBUG)
if (!committed){
if (tempCard && !committed){
OutputDebugString("MTGDECK: Card not committed before creating new one, Memory leak risk\n ");
OutputDebugString(tempCard->getName().c_str());
OutputDebugString("\n");