From 4a504e0228ec7f51de870db8591b8ec82c1c3930 Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Mon, 1 Apr 2013 18:00:59 +0100 Subject: [PATCH] [Fix] And that children, is why you don't C/P your code. --- src/misn_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misn_lua.c b/src/misn_lua.c index 7b68cac..949bca0 100644 --- a/src/misn_lua.c +++ b/src/misn_lua.c @@ -108,7 +108,7 @@ static int misn_setTitle(lua_State* L) { static int misn_setDesc(lua_State* L) { MIN_ARGS(1); if(lua_isstring(L, -1)) { - if(cur_mission->title) + if(cur_mission->desc) // Cleanup the old description. free(cur_mission->desc); cur_mission->desc = strdup((char*)lua_tostring(L, -1));