From 586523e7dbdc643f952ae90c67af0cfbfc97f460 Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 3 Oct 2008 22:44:02 +0000 Subject: Fix 2026005: macros being loaded in the wrong order. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7110 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/macro.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/macro.cc') diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc index 4c812db129..d7d284b5f0 100644 --- a/crawl-ref/source/macro.cc +++ b/crawl-ref/source/macro.cc @@ -895,10 +895,8 @@ static void _read_macros_from(const char* filename) } } -int macro_init( void ) +void macro_init() { - _read_macros_from(get_macro_file().c_str()); - const std::vector& files = Options.additional_macro_files; for (std::vector::const_iterator it = files.begin(); it != files.end(); @@ -907,8 +905,7 @@ int macro_init( void ) _read_macros_from(it->c_str()); } - - return 0; + _read_macros_from(get_macro_file().c_str()); } -- cgit v1.2.3-54-g00ecf