The method used to manually advance systemList.head and call
system.removeFromEngine(), but removeSystem() already takes care of
that. This eventually resulted in a null reference. The offending lines
were removed, and the next and previous pointers were set to null
after calling removeSystem instead.
The method used to manually advance systemList.head and call system.removeFromEngine(), but removeSystem() already takes care of that. This eventually resulted in a null reference. The offending lines were removed, and the next and previous pointers were set to null after calling removeSystem instead.