Skip to content

Commit

Permalink
fixed possible crash
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Feb 10, 2010
1 parent 646e8d2 commit c4bda98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/DeprecatedGUI/CBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ int CBox::CheckEvent()
// If the mouse is over transparent area, don't fire any event
// CGuiLayout will then continue processing events for other widgets

if(bmpBuffer.get() == NULL) {
errors << "CBox::CheckEvent: bmpBuffer == NULL" << endl;
return BOX_NONE;
}

// Get the mouse pos
mouse_t *Mouse = GetMouse();
if (!Mouse)
Expand Down

0 comments on commit c4bda98

Please sign in to comment.