X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramcompiler.cpp;h=aef17fa2369fdadc46366c7b4868751ba2d1fc1e;hp=13c73e4ac0a79694d4d50c7e37b14b6ffd69b1bb;hb=ec5ec4201b60b8ba15aaa6208e453225a1d7a291;hpb=e55f79ccb21e8c1be3d86f127e3ec1583e58ce92 diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 13c73e4a..aef17fa2 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -478,6 +478,7 @@ void ProgramCompiler::DeclarationCombiner::visit(VariableDeclaration &var) VariableDeclaration *&ptr = variables[var.name]; if(ptr) { + ptr->type = var.type; if(var.init_expression) ptr->init_expression = var.init_expression; remove_node = true;