File diff r16239:ab5caea2afdf → r16240:4f0e181f881c
src/ai/ai_info.cpp
Show inline comments
 
@@ -307,7 +307,8 @@ SQInteger AIInfo::AddLabels(HSQUIRRELVM 
 
		int key = atoi(key_string + 1);
 
		const char *label = SQ2OTTD(sq_label);
 

	
 
		if (config->labels->Find(key) == config->labels->End()) config->labels->Insert(key, strdup(label));
 
		/* !Contains() prevents strdup from leaking. */
 
		if (!config->labels->Contains(key)) config->labels->Insert(key, strdup(label));
 

	
 
		sq_pop(vm, 2);
 
	}