Maybe, but I kinda don't think so. When I click on the book the zone short name actually comes back correctly and is passed correctly to the Database::GetZoneLongName method, so I think the door functionality part of it works fine. The problem comes in not getting a Long zone name back from the method call. I don't actually think there is something wrong with the code so much as it may actually be in the query due to my version of mysql, maybe. I'm using the latest I think, or very close. I'm hoping to do some debugging of the query call tonight to see exactly what it's getting. I have a work around in the code that actually makes it stop crashing the zone, but I'd like to figure out why I'm not getting the long names back.
I find it interesting that the call to Database::GetZoneLongName returns a boolean, but it's only related to the database query not the fact that there is a long name or not and that boolean value isn't checked for. It seems to me it should return false if there is no long name and then that value should be checked for before it proceeds to do anything with the value that may or may not have been returned. Or it could just simply return the value of the Long Name or some default. That way you always have at least "something" to use in further processing. Maybe if no Long Name is found just default to the short name? I don't know. I've only been looking at it a couple of days.
|