Skip to content
Snippets Groups Projects
Commit 8823af5d authored by Perttu Ahola's avatar Perttu Ahola
Browse files

small segfault bug fix

parent f1567037
No related branches found
No related tags found
No related merge requests found
......@@ -177,9 +177,8 @@ TODO: Check if the usage of Client::isFetchingBlocks() in
Doing now:
======================================================================
TODO: Tool items
- Actually, tool items should be just a little special MapBlockItems
TODO: Tool capability table
TODO: Transferring of the table from server to client
======================================================================
......@@ -2109,7 +2108,7 @@ int main(int argc, char *argv[])
if(mlist != NULL)
{
InventoryItem *item = mlist->getItem(g_selected_item);
if((std::string)item->getName() == "ToolItem")
if(item && (std::string)item->getName() == "ToolItem")
{
ToolItem *titem = (ToolItem*)item;
if(titem->getToolName() == "WPick")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment