summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c3
1 files changed, 2 insertions, 1 deletions
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);