From c4cd091c43ade80033f41c1ceda5c9f51979dcbc Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 19 Mar 2012 21:03:47 +0000 Subject: Resolved a ModelView related segfault when opening the buy menu and a potental segfault in the inventory window. --- src/client/inventorywindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/inventorywindow.cc') diff --git a/src/client/inventorywindow.cc b/src/client/inventorywindow.cc index 0d78025..2b956c4 100644 --- a/src/client/inventorywindow.cc +++ b/src/client/inventorywindow.cc @@ -361,7 +361,7 @@ void InventoryWindow::set_info(const core::Info *info, const int amount) inventorywindow_ejectslider->hide(); if (!info) { - inventorywindow_modelview->set_modelname(0); + inventorywindow_modelview->clear(); inventorywindow_modeltitlelabel->set_text(""); inventorywindow_modelnamelabel->set_text(""); } else { -- cgit v1.2.3