From 4f56baa35df811304ef3e45c83471fcfd43bce2c Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 18 Apr 2009 15:08:40 +0000 Subject: [2758242] Fixing segfault during debug_mons_scan due to an mprf not matching its format string with its var args. Also, fixing clone function from chaos brand that was causing this where cloned items in monster inventories weren't setting their link to be part of the new monster's inventory. Refactoring monster holding functions into item_def, where they probably should be. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9618 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index e5b51ee0cf..3930a08826 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1089,7 +1089,7 @@ static void _fixup_misplaced_items() { item_def& item(mitm[i]); if (!is_valid_item(item) || (item.pos.x == 0) - || held_by_monster(item)) + || item.held_by_monster()) { continue; } -- cgit v1.2.3-54-g00ecf