tomassedovic / tcod-rs

Rust bindings for libtcod 1.6.3 (the Doryen library/roguelike toolkit)
Do What The F*ck You Want To Public License
229 stars 45 forks source link

Fixed uninitialized error in `check_for_events` #315

Closed ojhp closed 3 years ago

ojhp commented 3 years ago

Replaced uninitialised calls with MaybeUninit.

tomassedovic commented 3 years ago

Thanks! Running cargo run --example samples (and others) no longer panics.

@ojhp this project has a policy of giving merge access to people who get code accepted. Would you be interested in that?

(note that none of the current maintainers including myself are able to devote time and effort to future development of tcod-rs, but I'll keep merging PRs when I get to it)

ojhp commented 3 years ago

@tomassedovic Sure, I'm happy to help out when I get a chance. Just let me know if there's any contributors rules or anything.

tomassedovic commented 3 years ago

@ojhp the rules are just: open a PR instead of pushing directly, give others some time (1-2 days) before merging your own change, don't do anything malicious and don't be an arsehole.

I've sent you an invite.

ojhp commented 3 years ago

Nice and simple, thanks!