[SP] Some fixes for issues in both SP games pointed out by Coverity.