View Single Post
Old March 2, 2016, 09:05   #21
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,672
PowerWyrm is on a distinguished road
Commit 04e0edd: in slay_power(), due to this change, known objects will be considered having no brands and slays.

Instead of

Code:
	/* Count the known brands and slays */
	if (!known && obj->known) {
		brands = obj->known->brands;
		slays = obj->known->slays;
	} else {
		brands = NULL;
		slays = NULL;
	}
it should be

Code:
	/* Count the known brands and slays */
	if (!known) {
           if (obj->known) { 
		brands = obj->known->brands;
		slays = obj->known->slays;
	  } else {
		brands = NULL;
		slays = NULL;
          }
	}
__________________
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