Hi everyone, I'm trying to compile the game that Dominik made for the Ludum Dare 40, and I got two errors (of which I solved one):
1) Error on the line
if game.music.status() == Playing:
which I solved it with:
if game.music.status() == SoundStatus.Playing:
2) SIGSEGV: Illegal storage access. (Attempt to read from nil?) on the line
result.titleText.localBounds.width / 2,
I understand that localBounds is null, but why?? I am using Nim 0.17.2 on Ubuntu 16.04 64bit, with SFML/CFSML 2.3. @dom96 any ideas?
I'll look at this more in depth later today. Currently at lunch.
Anyway, I am a big fan of SFML, and I'm wondering if localBounds is even supposed to ever be null...
Maybe the rectangle was never set.
I've been looking into this for a while, and I can't seem to come across the culprit. localBounds returns a FloatRect, which is a {.bycopy.} object. It is not a ptr object. I am a bit confused myself.
Here's what I think I've deduced so far: