From a473991f679c851ab9b7e8eb3e67d4fcbd607338 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 30 May 2008 16:21:21 +0000 Subject: [PATCH] another crash --- src/eressea/lua/gm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eressea/lua/gm.cpp b/src/eressea/lua/gm.cpp index f3da9a0e1..901e92851 100644 --- a/src/eressea/lua/gm.cpp +++ b/src/eressea/lua/gm.cpp @@ -32,7 +32,7 @@ current_region(void) static tag * next_tag(int hash, const state * st) { - while (hash!=MAXTHASH) { + while (st && hash!=MAXTHASH) { tag * t = st->selected->tags[hash]; if (t!=NULL) return t; ++hash;