From ac058124cc5027f79697cc539880afefda63294c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 2 Dec 2007 02:17:18 +0000 Subject: [PATCH] added a note about ReadMapList() lifetime --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401745 --- plugins/include/sourcemod.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/include/sourcemod.inc b/plugins/include/sourcemod.inc index f10e9836..6f6f52f4 100644 --- a/plugins/include/sourcemod.inc +++ b/plugins/include/sourcemod.inc @@ -510,6 +510,10 @@ forward OnLibraryRemoved(const String:name[]); * If the maps end up being read from the maps folder (MAPLIST_FLAG_MAPSFOLDER), they * are automatically sorted in alphabetical, ascending order. * + * Arrays created by this function are temporary and must be freed via CloseHandle(). + * Modifying arrays created by this function will not affect future return values or + * or the contents of arrays returned to other plugins. + * * @param array Array to store the map list. If INVALID_HANDLE, a new blank * array will be created. The blocksize should be at least 16; * otherwise results may be truncated. Items are added to the array