All pastes #950593 Raw Edit

Mine

public text v1 · immutable
·published 2008-03-20 18:13 UTC
rendered paste body
Index: src/intdisplay.c
===================================================================
--- src/intdisplay.c	(revision 4172)
+++ src/intdisplay.c	(working copy)
@@ -432,6 +432,7 @@
 		}
 
 		// now find out how many we have built
+		if(psStructure != NULL)
+                {
+ 		     remaining = getProductionBuilt(psStructure, psTemplate);
+                 }
 		if (quantity > remaining)
 		{