summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 08:50:37 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 08:50:37 +0000
commit17b0158eef6f0b61976030248ffd531b70eaa865 (patch)
tree3ab5545885bb25233a70440d2c44e0dffba0208f /crawl-ref/source/randart.cc
parent64c8bcacb7d1797279b74bf39cac71b98c096be4 (diff)
downloadcrawl-ref-17b0158eef6f0b61976030248ffd531b70eaa865.tar.gz
crawl-ref-17b0158eef6f0b61976030248ffd531b70eaa865.zip
Prevent memory corruption.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8110 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc3
1 files changed, 2 insertions, 1 deletions
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);
}