Merge pull request #393 from nsawa/fix_gcc_warning_in_nk_end

Fix gcc warning in nk_end().
This commit is contained in:
Micha Mettke 2017-04-05 08:26:16 +02:00 committed by GitHub
commit 0d010a39a4

View File

@ -17427,7 +17427,7 @@ nk_end(struct nk_context *ctx)
return;
layout = ctx->current->layout;
if (!layout || layout->type == NK_PANEL_WINDOW && (ctx->current->flags & NK_WINDOW_HIDDEN)) {
if (!layout || (layout->type == NK_PANEL_WINDOW && (ctx->current->flags & NK_WINDOW_HIDDEN))) {
ctx->current = 0;
return;
}