Skip to content

Commit

Permalink
Fixed|Scripting|libcore: Copying record members when types mismatch
Browse files Browse the repository at this point in the history
Fixes a problem updating the defaults for Config.audio. In past builds,
this variable had a text value, but now it is a record.
  • Loading branch information
skyjake committed Oct 18, 2016
1 parent 87954fd commit f822dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -24,7 +24,8 @@ def copyMissingMembers(src, dest)
# the missing members to 'dest'. Private keys in 'src' are ignored.
# - src: Source record.
# - dest: Destination record.


if typeof(dest) != 'Record': return # Hmm?
srcSub = subrecords(src)

for name in dir(src)
Expand Down
Expand Up @@ -28,7 +28,6 @@ def setDefaults(d)

# The default audio and video subsystems.
d.video = 'opengl'
d.audio = 'fmod'

# Generic user interface settings.
record d.ui
Expand Down

0 comments on commit f822dc0

Please sign in to comment.