From 6e6ff87cdec3aa1080d59b0e477228f30b5c7c9c Mon Sep 17 00:00:00 2001
From: Joris <joris.dauphin@gmail.com>
Date: Thu, 3 May 2012 12:48:01 +0200
Subject: [PATCH] Fix warning in release with gcc

---
 src/stratagus/script.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/stratagus/script.cpp b/src/stratagus/script.cpp
index d6c0db3e4..d01478b32 100644
--- a/src/stratagus/script.cpp
+++ b/src/stratagus/script.cpp
@@ -637,7 +637,7 @@ UnitDesc *CclParseUnitDesc(lua_State *l)
 */
 CUnitType **CclParseTypeDesc(lua_State *l)
 {
-	CUnitType **res;
+	CUnitType **res = NULL;
 
 	if (lua_isstring(l, -1)) {
 		res = Str2TypeRef(l, LuaToString(l, -1));
@@ -645,7 +645,6 @@ CUnitType **CclParseTypeDesc(lua_State *l)
 	} else {
 		LuaError(l, "Parse Error in ParseUnit\n");
 	}
-
 	return res;
 }