The code used to store the world pointer as a console variable "pwoCurrentWorld" of type INDEX (int32) - that won't work for 64bit, so I added CShell::SetCurrentWorld() and CShell::GetCurrentWorld() and store it as a pointer.