summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-12-06 12:26:05 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-12-06 12:27:11 +0530
commit181913c1bc9a7338cc783285972ba15e2e97c59b (patch)
treeea8f6522b34a26e293433f571a3f398786707682 /crawl-ref/source/dlua.cc
parent4f5cb9def13827d50950497c2c0eef8ec0a83fa1 (diff)
downloadcrawl-ref-181913c1bc9a7338cc783285972ba15e2e97c59b.tar.gz
crawl-ref-181913c1bc9a7338cc783285972ba15e2e97c59b.zip
Fix map transforms accessing areas outside the map grid (kilobyte).
Diffstat (limited to 'crawl-ref/source/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index ed9d5b397e..1ee7ce4028 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -147,7 +147,7 @@ int dlua_chunk::load(CLua &interp)
if (empty())
{
chunk.clear();
- return (-1000);
+ return (E_CHUNK_LOAD_FAILURE);
}
int err = check_op(interp,
@@ -179,7 +179,7 @@ int dlua_chunk::run(CLua &interp)
int dlua_chunk::load_call(CLua &interp, const char *fn)
{
int err = load(interp);
- if (err == -1000)
+ if (err == E_CHUNK_LOAD_FAILURE)
return (0);
if (err)
return (err);