Path: utzoo!utgpu!watserv1!watcgl!andrewt From: andrewt@watnow.waterloo.edu (Andrew Thomas) Newsgroups: comp.sources.games.bugs Subject: Re: error in castle Message-ID: Date: 26 Feb 90 14:04:59 GMT References: <5214@tekred.CNA.TEK.COM> <1082@trlluna.trl.oz> Sender: daemon@watcgl.waterloo.edu Organization: University of Waterloo, Waterloo, Ontario, Canada Lines: 28 In-reply-to: simon@shiva.trl.oz's message of 26 Feb 90 02:48:38 GMT In article <1082@trlluna.trl.oz> simon@shiva.trl.oz (Simon Michnowicz - A Free Spirit) writes: I have noticed an error in castle. When I attempt an inventory of some object I found, the program sometimes hangs. I am not sure why. I had the same problem. The trick here is that one of the window pointers is being overwritten with zeros. The way to fix this is to increase the length of the global variable 'string' in castle.h. It is currently 9, but one of the source files assumes it is at least 20 in length and zeros 20 bytes. I increased it to 32 for safety. The change is: in castle.h char string[9]; should be: char string[32]; And all is fine after that. -- Andrew Thomas andrewt@watsnew.waterloo.edu Systems Design Eng. University of Waterloo "If a million people do a stupid thing, it's still a stupid thing." - Opus