Browse Source

Fix crash in Altar of Sacrifice, fixes #2648

Piotr Wójcik 8 years ago
parent
commit
137b9cde19
1 changed files with 4 additions and 2 deletions
  1. 4 2
      client/windows/CTradeWindow.cpp

+ 4 - 2
client/windows/CTradeWindow.cpp

@@ -575,8 +575,10 @@ void CTradeWindow::showAll(SDL_Surface * to)
 
 	if(readyToTrade)
 	{
-		hLeft->showAllAt(pos.topLeft() + selectionOffset(true), selectionSubtitle(true), to);
-		hRight->showAllAt(pos.topLeft() + selectionOffset(false), selectionSubtitle(false), to);
+		if(hLeft)
+			hLeft->showAllAt(pos.topLeft() + selectionOffset(true), selectionSubtitle(true), to);
+		if(hRight)
+			hRight->showAllAt(pos.topLeft() + selectionOffset(false), selectionSubtitle(false), to);
 	}
 }