Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 15, 2013, 18:41   #1
Kramborn
Rookie
 
Join Date: Apr 2012
Posts: 10
Kramborn is on a distinguished road
Crash in cleanup_r

I pulled b1011f7.
It crashes after stopping games,

Following patch works to fix it.


Code:
--- a/src/monster/mon-init.c
+++ b/src/monster/mon-init.c
@@ -649,11 +649,11 @@ static void cleanup_r(void)
                        f = fn;
                }
                while (fb) {
-               fb = r->friends_base;
+               if (fb = r->friends_base) {
                        fbn = fb->next;
                        mem_free(fb);
                        fb = fbn;
-               }               
+               }}
Kramborn is offline   Reply With Quote
Old June 16, 2013, 15:55   #2
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,356
AnonymousHero is on a distinguished road
FWIW, the patch works for me.
AnonymousHero is offline   Reply With Quote
Old June 17, 2013, 12:33   #3
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,400
PowerWyrm is on a distinguished road
Code:
fb = r->friends_base;
should be out of the while() loop, that's all...
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.2.0 crash Londorth Vanilla 7 January 6, 2011 15:02
crash in ivanilla fizzix Development 3 October 29, 2010 13:36
Crash Problem Gockel Development 0 August 29, 2010 03:28
Crash Bug? Rizwan Vanilla 4 February 25, 2010 12:58
3.1.1 strange crash bebo Vanilla 1 February 8, 2009 23:49


All times are GMT +1. The time now is 16:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.