OSDN Git Service

[Refactor] #3379 FuncItemTester::player_ptr を初期化した
authorHourier <66951241+Hourier@users.noreply.github.com>
Fri, 9 Jun 2023 12:37:14 +0000 (21:37 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Fri, 9 Jun 2023 15:52:17 +0000 (00:52 +0900)
src/object/item-tester-hooker.h

index c9a8e83..4b18ed4 100644 (file)
@@ -81,5 +81,5 @@ private:
     virtual bool okay_impl(const ItemEntity *o_ptr) const;
 
     std::function<bool(PlayerType *, const ItemEntity *)> test_func;
-    PlayerType *player_ptr;
+    PlayerType *player_ptr = nullptr;
 };