[Gtkradiant] error in patch.c?

gerhard.maier at schulz-engineering.com gerhard.maier at schulz-engineering.com
Tue Nov 9 08:16:18 CST 2004


sorry the error is that meshes isn't allocated yet... :)
        meshes[patchCount] = pm;

gtkradiant-bounces at zerowing.idsoftware.com schrieb am 09.11.2004 14:57:19:

>> In the case that e->patches is NULL, the test in the second part of the
>> for-loop will cause the loop to exit before executing anything.
>> 
>> for ( ... ; pm /* this evaluates to 0 if pm == NULL */ ; ... )
>> 
>> I assume this is code in q3map2? Is it crashing?
>> 
>> -SPoG
>> 
>> 
>> -----Original Message-----
>> From: gtkradiant-bounces at zerowing.idsoftware.com
>> [mailto:gtkradiant-bounces at zerowing.idsoftware.com] On Behalf Of
>> gerhard.maier at schulz-engineering.com
>> Sent: 09 November 2004 13:50
>> To: gtkradiant at zerowing.idsoftware.com
>> Subject: [Gtkradiant] error in patch.c?
>> 
>> hi,
>> 
>> in PatchMapDrawSurfs it seems that e->patches can be null. 
>> 
>> for ( pm = e->patches ; pm ; pm = pm->next  ) {
>> 
>>                 meshes[patchCount] = pm;
>>                 patchCount++;
>> 
>>         }
>> 
>> fails than.
>> 
>> bye
>> 
>> 
>> _______________________________________________
>> Gtkradiant mailing list
>> Gtkradiant at zerowing.idsoftware.com
>> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant
>> 
>> 
>> _______________________________________________
>> Gtkradiant mailing list
>> Gtkradiant at zerowing.idsoftware.com
>> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant




More information about the Gtkradiant mailing list