Mail Archives: djgpp/1999/03/01/16:21:10

Message-ID: <>
From: Kevin Lang/Ultima <ultima AT game-master DOT com>
Organization: StormTech SoftWare
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [AL] grabber crashes my entire system
References: <19990228 DOT 224058 DOT -138105 DOT 1 DOT andygoth AT juno DOT com>
Lines: 65
Date: Mon, 01 Mar 1999 12:13:38 -0500
X-Complaints-To: abuse AT videotron DOT net
X-Trace: 920316667 (Mon, 01 Mar 1999 14:31:07 EDT)
NNTP-Posting-Date: Mon, 01 Mar 1999 14:31:07 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

I think I figured it out:

in function:

int search_sprite_id(ISO_MAP *iso_map, unsigned int id) {
 int inx;
 A_SPRITE *temp;
 do {
  if (iso_map->sprite_list.current->next!=NULL) {
 } while ((iso_map->sprite_list.current->next!=NULL) ||

 if (iso_map->sprite_list.current->next==NULL) {
  return 0;
 return id;

I changed the || to &&

It kept going, causing a memory corruption bug. And there was another
bug where create_new_sprite_list wasn't setting ->next and ->previous to

Now I have no crashes (in windows, have to see in dos)!!!
EMAIL: mailto:ultimaATgame-masterDOTcom (anti-spam)
ICQ: 12919201

Member and founder of StormTech SoftWare, visit our page today!

Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Kevin Lang
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Kevin Lang
n:              Lang;Kevin
org:            StormTech SoftWare
adr:            ;;;;Quebec;;Canada
email;internet: ultima AT game-master DOT com
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


- Raw text -

  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019