small segfault bug fix
parent
f15670379d
commit
8823af5d6b
|
@ -177,9 +177,8 @@ TODO: Check if the usage of Client::isFetchingBlocks() in
|
||||||
Doing now:
|
Doing now:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
TODO: Tool items
|
TODO: Tool capability table
|
||||||
|
TODO: Transferring of the table from server to client
|
||||||
- Actually, tool items should be just a little special MapBlockItems
|
|
||||||
|
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
@ -2109,7 +2108,7 @@ int main(int argc, char *argv[])
|
||||||
if(mlist != NULL)
|
if(mlist != NULL)
|
||||||
{
|
{
|
||||||
InventoryItem *item = mlist->getItem(g_selected_item);
|
InventoryItem *item = mlist->getItem(g_selected_item);
|
||||||
if((std::string)item->getName() == "ToolItem")
|
if(item && (std::string)item->getName() == "ToolItem")
|
||||||
{
|
{
|
||||||
ToolItem *titem = (ToolItem*)item;
|
ToolItem *titem = (ToolItem*)item;
|
||||||
if(titem->getToolName() == "WPick")
|
if(titem->getToolName() == "WPick")
|
||||||
|
|
Loading…
Reference in New Issue