aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/lua-script.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index fb8a2bf88c..d0dc52f03b 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -1758,7 +1758,11 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *scrip
lua_pushnumber(_state, 480 - 14);
lua_setglobal(_state, "BOTTOM_Y");
- warning("STUB: Stick Sound Names into Lua");
+ for (int j = 0; j < g_hdb->_sound->getNumSounds(); j++) {
+ const char *name = g_hdb->_sound->getSNDLuaName(j);
+ lua_pushnumber(_state, j);
+ lua_setglobal(_state, name);
+ }
// Set the Entity Spawn Names in Lua
int j = 0;