Permalink
Browse files

table.Copy in SortedPairsByMemberValue

  • Loading branch information...
1 parent a1a33a5 commit 5e9d4fa05ea9cc69c56e5c0857d5247dcabdc192 @robotboy655 robotboy655 committed Sep 3, 2015
Showing with 1 addition and 0 deletions.
  1. +1 −0 garrysmod/lua/includes/extensions/table.lua
@@ -551,6 +551,7 @@ end
-----------------------------------------------------------]]
function SortedPairsByMemberValue( pTable, pValueName, Desc )
+ pTable = table.Copy( pTable )
Desc = Desc or false
local pSortedTable = table.ClearKeys( pTable, true )

0 comments on commit 5e9d4fa

Please sign in to comment.