Permalink
Browse files

Squelch compiler warning.

Warning triggered -Werror.
  • Loading branch information...
1 parent 5dca124 commit 9a6a0fe308f075681656dc14a41055db2359ec26 @Cyp Cyp committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/qtscriptfuncs.cpp
View
@@ -403,7 +403,7 @@ static QScriptValue js_pursueResearch(QScriptContext *context, QScriptEngine *en
STRUCTURE *psStruct = IdToStruct(id, player);
SCRIPT_ASSERT(context, psStruct, "No such structure id %d belonging to player %d", id, player);
QScriptValue list = context->argument(1);
- RESEARCH *psResearch;
+ RESEARCH *psResearch = NULL; // Dummy initialisation.
if (list.isArray())
{
int length = list.property("length").toInt32();

0 comments on commit 9a6a0fe

Please sign in to comment.