Jeck - Fixed a debug-mode crash.
* Crash was caused by null pointer dereference after card ID conflict deletes tempCard.
This commit is contained in:
@@ -298,7 +298,7 @@ int MTGAllCards::readConfLine(std::ifstream &file, int set_id){
|
|||||||
case 0:
|
case 0:
|
||||||
if (s[0] == '['){
|
if (s[0] == '['){
|
||||||
#if defined (_DEBUG)
|
#if defined (_DEBUG)
|
||||||
if (!committed){
|
if (tempCard && !committed){
|
||||||
OutputDebugString("MTGDECK: Card not committed before creating new one, Memory leak risk\n ");
|
OutputDebugString("MTGDECK: Card not committed before creating new one, Memory leak risk\n ");
|
||||||
OutputDebugString(tempCard->getName().c_str());
|
OutputDebugString(tempCard->getName().c_str());
|
||||||
OutputDebugString("\n");
|
OutputDebugString("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user