From 17b0158eef6f0b61976030248ffd531b70eaa865 Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 2 Jan 2009 08:50:37 +0000 Subject: Prevent memory corruption. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8110 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/randart.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/randart.cc') diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 441e8210b5..8709042d58 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -97,7 +97,8 @@ static bool _god_fits_artefact(const god_type which_god, const item_def &item, if (type_bad && !name_check_only) { ASSERT(!"God attempting to gift invalid type of item."); - mprf(MSGCH_ERROR, "%s attempting to gift invalid type of item."); + mprf(MSGCH_ERROR, "%s attempting to gift invalid type of item.", + god_name(which_god).c_str()); // Prevent infinite loop in make_item_randart(). return (true); } -- cgit v1.2.3-54-g00ecf