mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-09 19:41:04 +00:00
* fixed warnings and fixed clips counter
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@274 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
c5dfb34459
commit
ec65cc975d
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue