summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/prebuilt
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-12-24 22:55:02 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-12-24 22:55:52 +0530
commitee51c36eb9ab19ca2d86d072d605093d5518f4af (patch)
tree105d0064709dc0d9d3fa27303b4d348a09697742 /crawl-ref/source/prebuilt
parent11fc1d9aebae3917c8dd2403dc371cb83becb3b9 (diff)
downloadcrawl-ref-ee51c36eb9ab19ca2d86d072d605093d5518f4af.tar.gz
crawl-ref-ee51c36eb9ab19ca2d86d072d605093d5518f4af.zip
Fix std::string being passed directly to %s format in level compiler.
Diffstat (limited to 'crawl-ref/source/prebuilt')
-rw-r--r--crawl-ref/source/prebuilt/levcomp.tab.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/prebuilt/levcomp.tab.cc b/crawl-ref/source/prebuilt/levcomp.tab.cc
index 880106aa82..15401a1bfb 100644
--- a/crawl-ref/source/prebuilt/levcomp.tab.cc
+++ b/crawl-ref/source/prebuilt/levcomp.tab.cc
@@ -2608,7 +2608,7 @@ yyreduce:
lc_map.main.add(
yylineno,
make_stringf("depth_weight(\"%s\", %d)",
- quote_lua_string((yyvsp[(2) - (2)].text)), (int)(yyvsp[(1) - (2)].f)));
+ quote_lua_string((yyvsp[(2) - (2)].text)).c_str(), (int)(yyvsp[(1) - (2)].f)));
}
break;