[Commits] [wesnoth/wesnoth] 616d49: fixup 2486b8ba4bcef056fb523d91f4a8445b48aef685

GitHub noreply at github.com
Sat Dec 27 05:37:10 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 616d499c57d6e45bd96df2d102197380cd4799e3
      https://github.com/wesnoth/wesnoth/commit/616d499c57d6e45bd96df2d102197380cd4799e3
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-12-27 (Sat, 27 Dec 2014)

  Changed paths:
    M src/scripting/lua_common.cpp

  Log Message:
  -----------
  fixup 2486b8ba4bcef056fb523d91f4a8445b48aef685

That commit overlooked the tstring_concat_aux function in
lua_common.cpp, a helper function for tstring concatenation. This
caused lua errors when HttT was started, arising in the code to
display objectives.

This commit fixes up the tstring_concat_aux function to more
directly check the tstring type.

It also fixes luaW_totstring and luaW_toconfig so that they don't
immediately flag a type error if they fail to convert userdata to
a tstring... this was caused by inappropriately using
luaL_checkudata when luaL_testudata should be used.





More information about the Commits mailing list