Empty book's title and author is 0
Posted: Fri Aug 15, 2008 12:42 pm
Very minor stuff, just accidentally ran across: empty book's title and author is "0" instead of being empty.
Codewise it is be caused by book methodscript's function GetInfo (or better, the usage of it), in where various book related info is searched from datafiles, cprops and itemdesc.cfg, and if not found in any of them, value 0 is returned, causing it to appear as title and author.
This patch will add few if-blocks to convert zero with emptiness.
Codewise it is be caused by book methodscript's function GetInfo (or better, the usage of it), in where various book related info is searched from datafiles, cprops and itemdesc.cfg, and if not found in any of them, value 0 is returned, causing it to appear as title and author.
This patch will add few if-blocks to convert zero with emptiness.