From 81667b770ccdb41b3e63f5fdea75fe7da56b0d07 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 22 May 2017 16:13:33 +0200 Subject: Fix wrong comment in BLI_findstringindex (returns 0-based index!). --- source/blender/blenlib/intern/listbase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c index 6cb7b7d8e3e..46dcee48eda 100644 --- a/source/blender/blenlib/intern/listbase.c +++ b/source/blender/blenlib/intern/listbase.c @@ -664,7 +664,7 @@ void *BLI_rfindptr(const ListBase *listbase, const void *ptr, const int offset) } /** - * Returns the 1-based index of the first element of listbase which contains the specified + * Returns the 0-based index of the first element of listbase which contains the specified * null-terminated string at the specified offset, or -1 if not found. */ int BLI_findstringindex(const ListBase *listbase, const char *id, const int offset) -- cgit v1.2.3