Fixed a crash that happened when loading the items.

The executable kept crashing when I pulled the newest source and compiled. This is a quick fix for it.