From: Rudolf Polzer Date: Fri, 19 Jul 2013 11:32:47 +0000 (+0200) Subject: fix issues X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=caf47d31d00a33cd0787120242c6173798ac101f;p=xonotic%2Fgmqcc.git fix issues --- diff --git a/parser.c b/parser.c index 4fa1d3f..514a82f 100644 --- a/parser.c +++ b/parser.c @@ -261,10 +261,10 @@ static char *parser_strdup(const char *str) static ast_value* parser_const_string(parser_t *parser, const char *str, bool dotranslate) { - size_t hash = util_hthash(parser->ht_imm_string, str); - ast_value *out; - hash_table_t *ht_string = + ht ht_string = dotranslate ? parser->ht_imm_string_dotranslate : parser->ht_imm_string; + size_t hash = util_hthash(ht_string, str); + ast_value *out; if ( (out = (ast_value*)util_htgeth(ht_string, str, hash)) ) return out;