diff StorylineTextTable.cpp @ 2369:bddcaf5d5db2

removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
author Grumpy7
date Mon, 12 May 2014 01:50:32 +0200
parents 53d4e8539ca1
children f4af3b203f65
line wrap: on
line diff
--- a/StorylineTextTable.cpp	Mon May 12 00:13:39 2014 +0200
+++ b/StorylineTextTable.cpp	Mon May 12 01:50:32 2014 +0200
@@ -14,9 +14,7 @@
 {
 	char* test_string;
 
-	if ( pHistoryTXT_Raw )
-		free(pHistoryTXT_Raw);
-	pHistoryTXT_Raw = NULL;
+	free(pHistoryTXT_Raw);
 	pHistoryTXT_Raw = (char *)pEvents_LOD->LoadRaw("history.txt", 0);
 	strtok(pHistoryTXT_Raw, "\r");