Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61108     [previous patch]

indef_mode not restored
Submitted by: Michael Roy     Appeared in: Library 6/11 or before     Fixed in: -
Problem

When printing an object with the proper attribute, the functions IndefArt( ) and CIndefArt( ) temporarily modify -- but do not restore -- the value of the global variable indef_mode (see lines 6305 and 6315 in parserm.h).

Solution

On both lines:

  if (o has proper) { indef_mode = NULL; print (PSN__) o; return; }

should probably be replaced with:

  if (o has proper) {
      indef_mode = NULL; print (PSN__) o; indef_mode = i; return;
  }


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.