From ec21450522e3c2124f3510eef5cfd88420483248 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 26 Jun 2014 18:18:01 -0700 Subject: Low hanging fruit --- src/map/itemdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/itemdb.cpp') diff --git a/src/map/itemdb.cpp b/src/map/itemdb.cpp index c88a201..67b6d21 100644 --- a/src/map/itemdb.cpp +++ b/src/map/itemdb.cpp @@ -62,7 +62,7 @@ struct item_data *itemdb_searchname(XString str_) ItemName str = stringish(str_); if (XString(str) != str_) return nullptr; - struct item_data *item = NULL; + struct item_data *item = nullptr; for (auto& pair : item_db) itemdb_searchname_sub(&pair.second, str, &item); return item; @@ -222,8 +222,8 @@ bool itemdb_readdb(ZString filename) id->value_sell = id->value_buy / 2; } - id->use_script = NULL; - id->equip_script = NULL; + id->use_script = nullptr; + id->equip_script = nullptr; if (!tail_part) continue; -- cgit v1.2.3-70-g09d2