From 0daa7cdaed81f520e66690136352d890e7d7a623 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 13 Aug 2006 08:51:55 +0000 Subject: (svn r5873) - Fix a bad comment in r5871, and add a further check for saving strings. --- saveload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'saveload.c') diff --git a/saveload.c b/saveload.c index d1e0cc7db..e4e653600 100644 --- a/saveload.c +++ b/saveload.c @@ -516,7 +516,8 @@ static void SlString(void *ptr, uint length, VarType conv) { uint len; assert(GetVarFileType(conv) == SLE_FILE_STRING); - assert(GetVarMemType(conv) == SLE_VAR_STRB || GetVarMemType(conv) == SLE_VAR_STRQ); + assert(GetVarMemType(conv) == SLE_VAR_STRB || GetVarMemType(conv) == SLE_VAR_STRBQ); + assert(ptr != NULL); if (_sl.save) { len = SlCalcNetStringLen(ptr, length); -- cgit v1.2.3-70-g09d2