* Updated to ZDoom r3401:

- Fixed: FStringTable::operator[] would crash when passed a NULL string pointer.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1296 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2012-03-03 11:34:37 +00:00
parent bc9caf74dc
commit 2df1e3d3fb
2 changed files with 6 additions and 2 deletions

View file

@ -324,6 +324,10 @@ size_t FStringTable::ProcessEscapes (char *iptr)
// Finds a string by name and returns its value
const char *FStringTable::operator[] (const char *name) const
{
if (name == NULL)
{
return NULL;
}
DWORD bucket = MakeKey (name) & (HASH_SIZE - 1);
StringEntry *entry = Buckets[bucket];

View file

@ -3,5 +3,5 @@
// This file was automatically generated by the
// updaterevision tool. Do not edit by hand.
#define ZD_SVN_REVISION_STRING "3400"
#define ZD_SVN_REVISION_NUMBER 3400
#define ZD_SVN_REVISION_STRING "3401"
#define ZD_SVN_REVISION_NUMBER 3401