From 8d9e539f3348f17c3af9f2dee05b915b909b7b46 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 19 Mar 2012 14:21:52 +0000 Subject: Fixed a warning in a Release build git-svn-id: http://mc-server.googlecode.com/svn/trunk@423 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/cWindow.cpp b/source/cWindow.cpp index 62b319ca6..8c5d78495 100644 --- a/source/cWindow.cpp +++ b/source/cWindow.cpp @@ -199,7 +199,10 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player ) Window->Clicked( a_ClickPacket, a_Player ); } } - if( m_DraggingItem ) LOGD("Dragging: %i", m_DraggingItem->m_ItemCount ); + if (m_DraggingItem != NULL) + { + LOGD("Dragging: %i", m_DraggingItem->m_ItemCount ); + } } -- cgit v1.2.3