[Fix] And that children, is why you don't C/P your code.

This commit is contained in:
Allanis 2013-04-01 18:00:59 +01:00
parent 2e63c40ef4
commit 4a504e0228

View File

@ -108,7 +108,7 @@ static int misn_setTitle(lua_State* L) {
static int misn_setDesc(lua_State* L) { static int misn_setDesc(lua_State* L) {
MIN_ARGS(1); MIN_ARGS(1);
if(lua_isstring(L, -1)) { if(lua_isstring(L, -1)) {
if(cur_mission->title) if(cur_mission->desc)
// Cleanup the old description. // Cleanup the old description.
free(cur_mission->desc); free(cur_mission->desc);
cur_mission->desc = strdup((char*)lua_tostring(L, -1)); cur_mission->desc = strdup((char*)lua_tostring(L, -1));