Resolved segfault in elemnt swap code.
removed unused variable.
First 12 inventory slots active.