Finally fixed the segfault which suddenly happend on all files

Apparently there was going a lot of things wrong in the creation of
the items array in the NBT_Window.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>