From 736d54113b3f4923892fd0060600e619dd29d9db Mon Sep 17 00:00:00 2001 From: pauldubois Date: Sun, 9 Mar 2008 21:49:20 +0000 Subject: Fix crash on shutdown caused by bad order of static destruction (ugh). crawl_environment's destructor uses dlua, but dlua was getting destroyed first. Rather than mess with stupidly complicated singleton patterns, I've moved the definition of clua and dlua into acr.cc, to just before crawl_environment. This makes the order of construction/destruction well-defined and should be a workable long-term solution. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3559 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/luadgn.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/luadgn.h') diff --git a/crawl-ref/source/luadgn.h b/crawl-ref/source/luadgn.h index 7b74f38621..f0b92af987 100644 --- a/crawl-ref/source/luadgn.h +++ b/crawl-ref/source/luadgn.h @@ -12,6 +12,7 @@ #include "AppHdr.h" #include "clua.h" +// Defined in acr.cc extern CLua dlua; // Lua chunks cannot exceed 512K. Which is plenty! -- cgit v1.2.3-54-g00ecf