file.get©;
c = file.get();
c = # tmp = 3308
got S
ended loop
c =
tmp = 11
got D
got S
ended loop
c =
tmp = 3306
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3307
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3303
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3304
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3304
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3302
got D
got D
got D
got D
got D
got D
got S
ended loop
c =
tmp = 3301
got S
ended loop
c =
tmp = 11
got S
ended loop
c =
tmp = Pesky Gremlin stands here, looking for someone to hurt.~
got S
ended loop
c =
tmp = strange, flickering light whirls around you.
got S
ended loop
c =
tmp = stands before you, looking downright evil.
ended loop
Segmentation fault
Anyhow, I can read the header of an area fine, but once I start to iterate through rooms and doors/extra descrs within them, I keep hitting an infinite loop and I'm not sure why. I'm guessing that my file pointer isn't where I seem to think it is, so I'm probably accessing something wrong, but I'm pretty stumped on it right now.
Here's the offending function, and below it is a sample of the data I'm trying to read. Some rooms seem to work fine, as I can watch my log output truck along through a few of them, but then it just chokes.