New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a small issue on Linux #3

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@ngld

ngld commented Apr 4, 2015

I'm not sure why MSVC allows this but both gcc and clang complain if you skip a declaration with a goto jump. I've moved the declaration to the beginning of the function but anywhere before the first goto is fine.

After this change, it compiles. I've played through the basic training mission and haven't encountered any issues so far.

@SamuelCho SamuelCho closed this Apr 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment