summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-24 03:15:24 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-24 03:15:24 +0200
commit8823af5d6bee6e743b6ea7a7058f20b98a1d0915 (patch)
tree58871ef9283a70ec9e5319ddba0b53ff6d92f820 /src/main.cpp
parentf15670379da5529d38936d0a87a50b0dc72c6e8f (diff)
downloadminetest-8823af5d6bee6e743b6ea7a7058f20b98a1d0915.tar.gz
minetest-8823af5d6bee6e743b6ea7a7058f20b98a1d0915.tar.bz2
minetest-8823af5d6bee6e743b6ea7a7058f20b98a1d0915.zip
small segfault bug fix
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 29ff2748c..ac91b9d3d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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")