Skip to content

Commit

Permalink
Squelch compiler warning.
Browse files Browse the repository at this point in the history
Warning triggered -Werror.
  • Loading branch information
Cyp committed Dec 29, 2011
1 parent 5dca124 commit 9a6a0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtscriptfuncs.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 9a6a0fe

Please sign in to comment.