]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
* fixed warnings and fixed clips counter
authormattn <mattn>
Thu, 26 Jun 2008 11:20:01 +0000 (11:20 +0000)
committermattn <mattn>
Thu, 26 Jun 2008 11:20:01 +0000 (11:20 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@274 8a3a26a2-13c4-0310-b231-cf6edde360e5

libs/picomodel/lwo/lwob.c

index edf42cff06088aad197f7e82a123f41ac9441a32..2d381c59579c24cab079d5a9b07f5b1433df7c49 100644 (file)
@@ -70,7 +70,7 @@ static int add_clip( char *s, lwClip **clist, int *nclips )
    clip->saturation.val = 1.0f;
    clip->gamma.val = 1.0f;
 
-   if ( p = strstr( s, "(sequence)" )) {
+   if ( (p = strstr( s, "(sequence)" )) != NULL ) {
       p[ -1 ] = 0;
       clip->type = ID_ISEQ;
       clip->source.seq.prefix = s;
@@ -81,7 +81,7 @@ static int add_clip( char *s, lwClip **clist, int *nclips )
       clip->source.still.name = s;
    }
 
-   *nclips++;
+   (*nclips)++;
    clip->index = *nclips;
 
    lwListAdd( clist, clip );